whenever I use this script, there is a noticeable, and quite annoying pause while the units are created. Is there anyway to fix this?
;create script by -CrashnBurn- dwaters59@msn.com
; modified by zombie
;-----------------------------------------------------------
#start
_units2 = units west2
#loop
?(("Alive _x" count _units2) == 1): goto "create"
goto "loop"
#create
"OfficerW" createunit [getpos g2, west2, "w11 = this"]
"SoldierWG" createunit [getpos g2, west2, "w12 = this"]
"SoldierWLAW" createunit [getpos g2, west2, "w13 = this"]
"SoldierWAA" createunit [getpos g2, west2, "w14 = this"]
"SoldierWMedic" createunit [getpos g2, west2, "w15 = this"]
"SoldierWMG" createunit [getpos g2, west2, "w16 = this"]
exit
I figure by using this, I can cut down on lag by creating units when needed, but the pause everytime this or a similar executes just won't work