Hey Captain, this seems to work-
_pos = _this select 0
_grp = _this select 1
"OfficerE" createunit [getpos _pos,_grp,"s1=this",1,"LIEUTENANT"]
"SoldierEB" createunit [getpos _pos,_grp,"s2=this",0.5,"SERGEANT"]
"SoldierEMG" createunit [getpos _pos,_grp,"s3=this",0.5,"SERGEANT"]
"SoldierEG" createunit [getpos _pos,_grp,"s4=this",0.5,"SERGEANT"]
"SoldierEB" createunit [getpos _pos,_grp,"s5=this",0.5,"SERGEANT"]
"SoldierELAW" createunit [getpos _pos,_grp,"s6=this",0.5,"SERGEANT"]
"SoldierEB" createunit [getpos _pos,_grp,"s7=this",0.5,"SERGEANT"]
"SoldierEB" createunit [getpos _pos,_grp,"s8=this",0.5,"SERGEANT"]
"SoldierEB" createunit [getpos _pos,_grp,"s9=this",0.5,"SERGEANT"]
"SoldierEMG" createunit [getpos _pos,_grp,"s10=this",0.5,"SERGEANT"]
"SoldierEB" createunit [getpos _pos,_grp,"s11=this",0.5,"SERGEANT"]
"SoldierEMedic" createunit [getpos _pos,_grp,"s12=this",0.5,"SERGEANT"]
~2
s1 addeventhandler ["fired",{[s1] exec "spray.sqs"}]
s2 addeventhandler ["fired",{[s2] exec "spray.sqs"}]
s3 addeventhandler ["fired",{[s3] exec "spray.sqs"}]
s4 addeventhandler ["fired",{[s4] exec "spray.sqs"}]
s5 addeventhandler ["fired",{[s5] exec "spray.sqs"}]
s6 addeventhandler ["fired",{[s6] exec "spray.sqs"}]
s7 addeventhandler ["fired",{[s7] exec "spray.sqs"}]
s8 addeventhandler ["fired",{[s8] exec "spray.sqs"}]
s9 addeventhandler ["fired",{[s9] exec "spray.sqs"}]
s10 addeventhandler ["fired",{[s10] exec "spray.sqs"}]
s11 addeventhandler ["fired",{[s11] exec "spray.sqs"}]
s12 addeventhandler ["fired",{[s12] exec "spray.sqs"}]
;------------------------------------------------------------------------------
_grp setformation "LINE"
_grp setbehaviour "AWARE"
_grp setcombatmode "GREEN"
"_x allowfleeing 0" foreach units _grp
exit