From cf4890cc1402c7c20cad2d85ffdfc5fe208893b1 Mon Sep 17 00:00:00 2001 From: Defent Date: Tue, 25 Aug 2015 18:45:53 +0200 Subject: [PATCH] Fix'd --- scripts/DMS_spawnAI.sqf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/DMS_spawnAI.sqf b/scripts/DMS_spawnAI.sqf index f0223b7..b689fcb 100644 --- a/scripts/DMS_spawnAI.sqf +++ b/scripts/DMS_spawnAI.sqf @@ -1,8 +1,9 @@ DMS_spawnAI = { - private ["_group", "_pos","_soldier","_skill","_units"]; + private ["_group", "_pos","_soldier","_skill","_units","_playerObject"]; _pos = _this select 0; _units = _this select 1; _skill = _this select 2; + //_playerObject = (owner player); // Needed 4 exile _group = createGroup INDEPENDENT; _group setBehaviour "COMBAT"; @@ -10,9 +11,9 @@ DMS_spawnAI = { _group allowFleeing 0; // Set AI owner to Player. - // _group setGroupOwner (owner player); + _group setGroupOwner (owner player); // Not tested this one, may need to apply above one. - ExileServerOwnershipSwapQueue pushBack [_group,_playerObject]; + //ExileServerOwnershipSwapQueue pushBack [_group,_playerObject]; for "_i" from 1 to _units do {