Added Player Names that killed Objects to diag_log

Just passing the variable with the player that killed the object

http://community.bistudio.com/wiki/ArmA_2:_Event_Handlers#MPKilled
This commit is contained in:
Torndeco
2013-11-13 20:07:56 +00:00
parent 15b0199998
commit 7c3e2bb104

View File

@@ -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";