• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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