blob: aaf20f2b9f4176dcf9ad4895267ef4f71302e377 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
Private ['_get','_override','_variable','_value'];
_variable = _this select 0;
_value = _this select 1;
_override = if (count _this > 2) then {_this select 2} else {false};
//--- BIS Bug, typename doesn't work properly with nil.
if !(_override) then {
_get = _variable Call GetNamespace;
if (isNil '_get') then {
missionNamespace setVariable [_variable,_value];
};
} else {
missionNamespace setVariable [_variable,_value];
};
|