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