mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-18 01:30:26 +03:00
add logging method for lock/unlock
This commit is contained in:
@@ -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"];
|
||||
|
||||
@@ -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",[]];
|
||||
|
||||
Reference in New Issue
Block a user