Home   Help Search Login Register  

Author Topic: Counting spawns  (Read 503 times)

0 Members and 1 Guest are viewing this topic.

rOk

  • Guest
Counting spawns
« on: 26 Jul 2004, 10:40:29 »
Hi again.

I'm interested "spawn counting" namely how to spawn a group for let's say 10 times and then stop.
Thanks

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:Counting spawns
« Reply #1 on: 26 Jul 2004, 12:35:41 »
spawning an ai group or a player group?
for ai try this:
?!(local server):goto "end"
_gs=1
#groupspawn
 "soldierwb" createunit [getmarkerpos "barracks", group alpha]
_gs=_gs+1
?(_gs>=11)goto:"end"
goto "groupspawn"
#end
exit

all off the top of my head, untested, but should be ok.....

rOk

  • Guest
Re:Counting spawns
« Reply #2 on: 26 Jul 2004, 12:45:39 »
Thanks for the quick reply.

*grabs editor by the pants*  ;D

rOk

  • Guest
Re:Counting spawns
« Reply #3 on: 27 Jul 2004, 15:38:02 »
Hey Zombie

Your idea returns this:
Code: [Select]
/#/goto error unknown operator goto
Any thoughts?
« Last Edit: 27 Jul 2004, 15:38:18 by rOk »

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:Counting spawns
« Reply #4 on: 27 Jul 2004, 18:46:58 »
yep, I see it.  
the line ?(_gs>=11)goto : "end"
SHOULD BE
?(_gs>=11):goto "end"

sorry for the typo