
_arraygroup = _this select 0
_frigate = _this select 1

_r = 0
_p = 0
_t = 0
_tmax = count _arraygroup

#mainloop

~1

_group = _arraygroup select _t

{dostop _x;_x allowfleeing 0;_x disableAI "target";_x setunitpos "UP"} foreach units _group

#placing

~0.1

((units _group) select _r) setPos (_frigate buildingpos _p) 

_r = _r + 1
_p = _p + 1
? (_r < count units _group) : goto "placing"


_r = 0

_t = _t + 1

? (_t < _tmax) : goto "mainloop"


exit






