I've been condensing a mission into script form so it can be spawned at will and used as an objective (it's a small smash and grab mission) anyway...
problem is when i create my group of enemies i use the createUnit command and a for var loop:
The _enemymen var is an array full of unit class names which as you can see, it randomly pick from.Code:_grpeast = createGroup EAST; "RU_Commander" createUnit [[0,0,0],_grpeast,"this = leader _grpeast;nul = [this,_area] execVM 'Garrison_script.sqf';",0.5,"LIEUTENANT"]; for "_i" from 0 to 8 do {(_enemymen select (round (random ((count _enemymen) -1)))) createUnit [[0,0,0],_grpeast];}; {_x setPos (getPos _location);} foreach units _grpeast;
despite my group being of side EAST the units spawned by this command are passive to WEST units.
any thoughts?
HOME
Reply With Quote

That's what MSO did.
