From 2998a01720480cda26039b7bc0f0b52c19624635 Mon Sep 17 00:00:00 2001 From: Defent Date: Sat, 29 Aug 2015 12:15:48 +0200 Subject: [PATCH 1/2] 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 From 9feeb0bcadfd2c982e46aec73df999be33d50415 Mon Sep 17 00:00:00 2001 From: Defent Date: Sat, 29 Aug 2015 12:16:39 +0200 Subject: [PATCH 2/2] 2.0!! --- @ExileServer/addons/a3_dms/config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/@ExileServer/addons/a3_dms/config.cpp b/@ExileServer/addons/a3_dms/config.cpp index 514ae79..e427dbb 100644 --- a/@ExileServer/addons/a3_dms/config.cpp +++ b/@ExileServer/addons/a3_dms/config.cpp @@ -2,7 +2,7 @@ class CfgPatches { class A3_dms { units[] = {}; weapons[] = {}; - a3_DMS_version = 1.0; + a3_DMS_version = 2.0; requiredVersion = 1.36; requiredAddons[] = {"exile_client","exile_server_config"}; }; @@ -20,4 +20,4 @@ class CfgFunctions { }; }; }; -}; \ No newline at end of file +};