• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How do i make a random spawn in a hunting zone?

Status
Not open for further replies.
Level 9
Joined
Sep 3, 2007
Messages
375
You need to add the event: Unit enters Region, and (probably) a Player Comparison condition, so the spawned units wont keep spawning new ones when they are created.
 
Level 15
Joined
Jan 16, 2008
Messages
1,244
Best way to do it:
Events:
Time - periodic event (every n seconds)
Conditions:
Integer comparison - number of units in (region) less than or equal to (number)-> this prevents overspawning
Actions:
Create (n units) for (some player) at (random point) in (hunting region) facing (whatever angle)

i hope this helps
 
Status
Not open for further replies.
Top