This commit is contained in:
Defent 2015-08-25 18:45:53 +02:00
parent 8677b8c603
commit cf4890cc14

View File

@ -1,8 +1,9 @@
DMS_spawnAI = { DMS_spawnAI = {
private ["_group", "_pos","_soldier","_skill","_units"]; private ["_group", "_pos","_soldier","_skill","_units","_playerObject"];
_pos = _this select 0; _pos = _this select 0;
_units = _this select 1; _units = _this select 1;
_skill = _this select 2; _skill = _this select 2;
//_playerObject = (owner player);
// Needed 4 exile // Needed 4 exile
_group = createGroup INDEPENDENT; _group = createGroup INDEPENDENT;
_group setBehaviour "COMBAT"; _group setBehaviour "COMBAT";
@ -10,9 +11,9 @@ DMS_spawnAI = {
_group allowFleeing 0; _group allowFleeing 0;
// Set AI owner to Player. // Set AI owner to Player.
// _group setGroupOwner (owner player); _group setGroupOwner (owner player);
// Not tested this one, may need to apply above one. // 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 { for "_i" from 1 to _units do {