hey :)
Just getting some trouble and cant find why the hack this code below does not wotk.... ->>
_safes = nearestObjects [player, ["VaultStorageLocked"], 12000]; _safearray = []; { if ((_x getVariable ["CharacterID","0"]) == "0000") then { //added under it some debug code via diag_log seems like he is not able to get the variable.... but it also do not throws out "0" _safearray set [count _safearray, _x]; }; } forEach _safes; //Also tried count, makes no difference //if you diag_log the safearray now it throws out a null
maybe any of you could help me with it...... and yes, there are safes with the characterID "0000"
Thank you for your help