• 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.

[Solved] Spawning a group at a random location

Status
Not open for further replies.
Level 6
Joined
Mar 17, 2012
Messages
105
I feel like this requires variables, and I'm not a very strong at triggers, so if anyone could help me, that'd be great.

I'm trying to create a group of fourteen units of four different unit types (4 of type A, 5 of type B, 4 of type C, 1 of type D). This group will spawn at a random location in the playable map area, all of them together. Each player - eight total - will have a group spawned randomly. Can anyone help me out with this? Thanks.

NEVER MIND! I figured it out.

I just had one of the fourteen units created at a random point, and then all of the other units would be spawned at the position of the last created unit. A hundredth of a second separated each player's group spawn time.
 
Last edited by a moderator:
Level 19
Joined
Aug 8, 2007
Messages
2,765
Did you know you can change the # of units spwaned in the create unit trigger?.. you dont have to create 1 than create 13 at position of last created
 
Status
Not open for further replies.
Top