mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
add logging method for lock/unlock
This commit is contained in:
@@ -882,3 +882,20 @@ server_spawnCleanAnimals = {
|
||||
diag_log (format["CLEANUP: Deleted %1 Animals out of %2",_delQtyAnimal,_qty]);
|
||||
};
|
||||
};
|
||||
|
||||
server_logUnlockLockEvent = {
|
||||
private["_player", "_obj", "_objectID", "_objectUID", "_statusText", "_status"];
|
||||
_player = _this select 0;
|
||||
_obj = _this select 1;
|
||||
_status = _this select 2;
|
||||
if (!isNull(_obj)) then {
|
||||
_objectID = _obj getVariable["ObjectID", "0"];
|
||||
_objectUID = _obj getVariable["ObjectUID", "0"];
|
||||
_statusText = "UNLOCKED"
|
||||
if (_status) then {
|
||||
[_obj, "gear"] call server_updateObject;
|
||||
_statusText = "LOCKED"
|
||||
};
|
||||
diag_log format["SAFE %5: ID:%1 UID:%2 BY %3(%4)", _objectID, _objectUID, (name _player), (getPlayerUID _player), _statusText];
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user