• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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?
 
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: 93
  • Transport Demo.w3x
    Transport Demo.w3x
    19.4 KB · Views: 67
Last edited:
Status
Not open for further replies.
Back
Top