add logging method for lock/unlock

This commit is contained in:
[VB]AWOL
2014-05-07 10:06:12 -05:00
parent e1577bc4f3
commit 3d97f6e17d
4 changed files with 23 additions and 5 deletions

View File

@@ -43,9 +43,8 @@ _pos = _obj getVariable["OEMPos",(getposATL _obj)];
if(!isNull _obj) then {
//force vault save just before locking
PVDZE_veh_Update = [_obj,"gear"];
publicVariableServer "PVDZE_veh_Update";
PVDZE_log_lockUnlock = [player, _obj,true];
publicVariableServer "PVDZE_log_lockUnlock";
//place vault
_holder = createVehicle [_lockedClass,_pos,[], 0, "CAN_COLLIDE"];

View File

@@ -58,6 +58,9 @@ if ((_ownerID == dayz_combination) or (_ownerID == dayz_playerUID)) then {
if(!isNull _obj and alive _obj) then {
PVDZE_log_lockUnlock = [player, _obj, false];
publicVariableServer "PVDZE_log_lockUnlock";
_obj setVariable["packing",1];
[1,1] call dayz_HungerThirst;
_weapons = _obj getVariable["WeaponCargo",[]];