From 2998a01720480cda26039b7bc0f0b52c19624635 Mon Sep 17 00:00:00 2001 From: Defent Date: Sat, 29 Aug 2015 12:15:48 +0200 Subject: [PATCH] Fixed event handler --- @ExileServer/addons/a3_dms/scripts/SpawnAISoldier.sqf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/@ExileServer/addons/a3_dms/scripts/SpawnAISoldier.sqf b/@ExileServer/addons/a3_dms/scripts/SpawnAISoldier.sqf index 1a512c4..2e6fb73 100644 --- a/@ExileServer/addons/a3_dms/scripts/SpawnAISoldier.sqf +++ b/@ExileServer/addons/a3_dms/scripts/SpawnAISoldier.sqf @@ -267,7 +267,8 @@ _skillArray = missionNamespace getVariable [format["DMS_ai_skill_%1",_difficulty } count _skillArray; // Ground unit -_unit addEventHandler ["Killed",{[_this, "soldier"] call DMS_OnKill;}]; +//_unit addEventHandler ["Killed",{[_this, "soldier"] call DMS_OnKill;}]; +_unit addEventHandler ["Killed",{[_unit, _group, "soldier"] call TargetsKilled;}]; _unit enableAI "TARGET"; _unit enableAI "AUTOTARGET"; @@ -275,4 +276,4 @@ _unit enableAI "MOVE"; _unit enableAI "ANIM"; _unit enableAI "FSM"; -_unit \ No newline at end of file +_unit