change over to use static vars add player name to logging

This commit is contained in:
[VB]AWOL
2014-02-06 15:03:35 -06:00
parent 6ebbd143e5
commit f9b2890f3a
2 changed files with 14 additions and 25 deletions

View File

@@ -65,10 +65,12 @@ if ((_ownerID == dayz_combination) or (_ownerID == dayz_playerUID)) then {
[player,"tentpack",0,false] call dayz_zombieSpeak;
sleep 5;
PVDZE_obj_getlocalVars = [player, _obj, ["WeaponCargo", "MagazineCargo", "BackpackCargo"]];
publicVariableServer "PVDZE_obj_getlocalVars";
PVDZE_obj_getlocalVars = [player, _obj];
PVDZE_localVarsResult = nil;
publicVariableServer "PVDZE_obj_getlocalVars";
waitUntil {sleep 1; !isNil "PVDZE_localVarsResult"};
_weapons = if (typeName (PVDZE_localVarsResult select 0) == "ARRAY") then { (PVDZE_localVarsResult select 0) } else { [] };