mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
change over to use static vars add player name to logging
This commit is contained in:
@@ -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 { [] };
|
||||
|
||||
Reference in New Issue
Block a user