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

Creating units inside a transport

Status
Not open for further replies.
Level 4
Joined
Dec 12, 2018
Messages
35
So, I want to create waves of attack that will disembarc from a transport. The idea was to create a transport unit, tag it with a variable and create more units inside of it using that variable..

Is there a way of doing this or I must make another trigger that creates units when the transport arrives at the target region?
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
What you want to do is create your transport unit(s) in the corner of the map (somewhere hidden from the player's view) and spawn the waves of units there too. Then order your spawned units to load into the transport unit(s). Finally, after they're done loading, move them to where they should be. This will give the illusion that the Transport units spawned fully loaded and ready to go.

I attached a map with an example of how you could do this.

There's some tricks in my demo map that allow you to make this work effectively. First, you want to turn off the unit collision temporarily for all of our spawned units so that they can stack inside of one another. This makes it easier for the Transport to load them. Then, and this is important, you want to go into the Object Editor and set "Movement - Group Separation - Enabled = FALSE" for ALL of your transport units. You only need to do this for the transport units, not the units that will be loaded into them. This prevents boats/flying units from pushing away (separating) from one another.

If you have any questions just let me know.
 

Attachments

  • Group Separation.png
    Group Separation.png
    107.7 KB · Views: 51
  • Transport Demo.w3x
    19.4 KB · Views: 26
Last edited:
Status
Not open for further replies.
Top