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"
Question
StiflersM0M
hey :)
Just getting some trouble and cant find why the hack this code below does not wotk.... ->>
maybe any of you could help me with it...... and yes, there are safes with the characterID "0000"
Thank you for your help
Link to comment
Share on other sites
9 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