|
Post by Ron4Swat on Jun 30, 2018 16:48:05 GMT
setUnitGlobalVars.sqf needs only be called once to initalize the variables, however it is called from multiple scripts. This can create problems especially with scripts that run multiple times, like TREND_fnc_CallNearbyPatrols.
This is a problem for all variables that are initalized with a default value, that is later changed in setUnitGlobalVars.sqf. If the Arma3 scheduler stops the interpreation of the script at the wrong moment, some variables are suddenly initialized with the default value for some time.
In my case i have some config Variables added, that have a default setting in TRGMSetUnitGlobalVars.sqf, which are later changed in setnitGlobalVars.sqf. For a small period of time the settings in TRGMSetUnitGlobalVars.sqf are active, which suddenly activate previously deactvated features at some point in the mission if tha happens. This happens for me nearly every 2. run of the mission.
|
|