mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Merge pull request #698 from Torndeco/patch-3
Added Player Names that killed Objects to diag_log
This commit is contained in:
@@ -82,13 +82,14 @@ vehicle_handleServerKilled = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
object_handleServerKilled = {
|
object_handleServerKilled = {
|
||||||
private["_unit","_objectID","_objectUID"];
|
private["_unit","_objectID","_objectUID","_killer"];
|
||||||
_unit = _this select 0;
|
_unit = _this select 0;
|
||||||
|
_killer = _this select 1;
|
||||||
|
|
||||||
_objectID = _unit getVariable ["ObjectID","0"];
|
_objectID = _unit getVariable ["ObjectID","0"];
|
||||||
_objectUID = _unit getVariable ["ObjectUID","0"];
|
_objectUID = _unit getVariable ["ObjectUID","0"];
|
||||||
|
|
||||||
[_objectID,_objectUID] call server_deleteObj;
|
[_objectID,_objectUID,_killer] call server_deleteObj;
|
||||||
|
|
||||||
_unit removeAllMPEventHandlers "MPKilled";
|
_unit removeAllMPEventHandlers "MPKilled";
|
||||||
_unit removeAllEventHandlers "Killed";
|
_unit removeAllEventHandlers "Killed";
|
||||||
|
|||||||
Reference in New Issue
Block a user