Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'"BIS_" function should not be overwritten' warning #56

Open
iAcolyte opened this issue Mar 2, 2021 · 2 comments
Open

'"BIS_" function should not be overwritten' warning #56

iAcolyte opened this issue Mar 2, 2021 · 2 comments

Comments

@iAcolyte
Copy link

iAcolyte commented Mar 2, 2021

" The "BIS_" function should not be overwritten. "BIS_" is an reserved namespace for functions by Bohemia Interactive "
It's very annoying warning showing up every time I use BIS_ function. I don't want to overwrite it. How can I disable it?

@Armitxes Armitxes added this to the v2.0.0 (Milestone 3) milestone Mar 13, 2021
@HansLuft778
Copy link

Late answer, but a way I found around it (if still relevant).

This seems to be the case when comparing a BIS-function return value to something, like

if ("taskGetAmmo" call BIS_fnc_taskState == "CREATED") then {
	....
};

you can either switch both sides of the == to get rid if the error,
or assign the return value of the BIS-function to a variable:

foo = "taskGetAmmo" call BIS_fnc_taskState;
if (foo  == "CREATED") then {
	....
};

either way, the BIS-function has to be to the right of a qual sign.

@oblivion049
Copy link

Do not use lowercase "bis" in uppercase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants