Home   Help Search Login Register  

Author Topic: spawning units  (Read 451 times)

0 Members and 1 Guest are viewing this topic.

Offline oyman

  • Members
  • *
  • king of pings
spawning units
« 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?

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:spawning units
« Reply #1 on: 21 Mar 2005, 10:15:58 »
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 -

Code: [Select]
"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 :)