

_group = _this select 0
_leader = _this select 1

_vehicle = (units _group) select 0

_formationX = [0 , 2 , -2 , 4 , -4 , 6 , -6 , 8 , -8 , 10]
_formationY = [0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0]

_Lpos = getpos _vehicle
_dir = getdir _vehicle

_r = 2


#placing

~0.01

_x = (_formationX) select _r
_y = (_formationY) select _r

_rad = ((_x ^ 2) + (_y ^ 2)) ^ .5
_Fdir = _x atan2 _y
_Cdir = _Fdir + _dir

((units _group) select _r) setPos [(_Lpos select 0) + (sin _Cdir) * _rad, (_Lpos select 1) + (cos _Cdir) * _rad]

_r = _r + 1

? (_r < count units _group) : goto "placing"

_group setcombatmode "GREEN"
_group setformation "LINE"
_group setspeedmode "LIMITED"
{dostop _x;_x disableAI "TARGET"} foreach units _group

~random 5


{[_x,_leader] exec "line62.sqs"} foreach units _group 

exit






