Inkko
Valued Member!
I think something is borked . since playing around with these namespaces etc , I notice that the DZMS config file isn't being called anymore. The AI have rocket launchers , which I've disabled in the config. So I'm just going through trying to figure out what has broken. I've gone right back to a build before I started playing with profilenamespaces and it's still the same (i.e not using any custom code with the AIkill script). Can't pin down when this started either.. lol
All looks normal in the logs (you know it's going to be one of those days lol):
Code:15:54:44 [DZMS]: DZAI Found! Using DZAI's Relations! 15:54:44 [DZMS]: Currently Running Version: 1.1FIN 15:54:44 [DZMS]: Mission and Extended Configuration Loaded! 15:54:44 [DZMS]: lingor Detected. Map Specific Settings Adjusted! 15:54:44 [DZMS]: DayZ Epoch Detected! Some Scripts Adjusted! 15:54:44 [DZMS]: Loading ExecVM Functions. 15:54:44 [DZMS]: Loading Compiled Functions. 15:54:44 [DZMS]: Loading All Other Functions. 15:54:44 [DZMS]: Mission Functions Script Loaded! 15:54:44 [DZMS]: Minor Mission Clock Starting! 15:54:44 [DZMS]: Mission Marker Loop for JIPs Starting!
Edit: and the winner is....
Code:18:24:59 Error in expression < _player getVariable "myFactionAI"; if (_faction == "BANDIT") then { _humanity => 18:24:59 Error position: <_faction == "BANDIT") then { _humanity => 18:24:59 Error Undefined variable in expression: _faction
The variable is set, I've got a local debug running and it's getting the results. Just seems that the server isn't ?
This is in my init.sqf, it works for the zombie kill humanity and even for the badge in the GUI. The zombie kills are dealt with locally with a custom killscript .. fyi.
Code:myFaction = profileNamespace getVariable "Faction"; //Set in my variables file with all the other variables! switch true do { case (myFaction == "BANDIT"):{player setVariable ["myFactionAI","BANDIT"]}; case (myFaction == "HERO"):{player setVariable ["myFactionAI","HERO"]}; default { player setVariable ["myFactionAI","HERO"]; }; };
object setvariable [var,value,public];
Code:
...
case (myFaction == "BANDIT"):{player setVariable ["myFactionAI","BANDIT",true]};
case (myFaction == "HERO"):{player setVariable ["myFactionAI","HERO",true]};
...