OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: oyman on 21 Mar 2005, 02:43:54
-
Is there a way to spawn 3 groups of 12 soldiers at a separate location for each group, then make them go attack a position and then make this loop every 3 minutes?
-
yes.
heheh. m'kay, you probably want to know how too, right ;)
rather than spelling it out, i'll just give pointers to the right places.
creating the loons - you could do this via a looping script to save having to name each loon individually, or you could create each 12-loon group by hand. both methods would involve the createunit command. see the comref.
after you create 12 units with a couple of higher-ranking loons, use the name of the officer thus -
"squad_name" = group officer_name
placing the loons - place markers where you want them to appear, and then use the attached script by ACF to teleport them to the markers.
a separate script would be required to make them hunt positions. use a marker again, and use the domove command on the squad_name. i assume you want the hunting to repeat every 3 seconds, but if you mean the whole createunit thing, that's just as easily done.
hope you don't think i'm being stingy by not providing the whole script itself - i'm just encouraging you to learn is all.
good luck :)