mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-10-04 04:31:36 +03:00
add logging method for lock/unlock
This commit is contained in:
1 parent
e1577bc4f3
commit
3d97f6e17d
4 files changed
+23
-5
No files matched your search
@@ -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