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
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now