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

@@ -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];
};
};