I want it so when a variable is not existing in the server, it will create it on the mission file and assign a default value to it.
Example from variables.sqf:
if(isNil "DZE_HeliLift") then {
DZE_HeliLift = true;
};
I would like it so, in the same principle, a var (lets call it Variable) is supposed to be called from server.pbo. BUT, if that var is not declared/initialized, I would like it to create itself and assign it's value to = false.
if (isNil "Variable") then {
Variable = false;
};
?????
Question
FragZ
I want it so when a variable is not existing in the server, it will create it on the mission file and assign a default value to it.
Example from variables.sqf:
I would like it so, in the same principle, a var (lets call it Variable) is supposed to be called from server.pbo. BUT, if that var is not declared/initialized, I would like it to create itself and assign it's value to = false.
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now