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

[Trigger] Loading Units into a cargo hold via triggers

Status
Not open for further replies.
Level 7
Joined
Sep 24, 2008
Messages
281
What is the trigger which create a unit inside a goblin zepelin, or another unit with a cargo hold. Thanks.:grin:
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
  • Actions
    • Set TempLoc = (Position of Goblin Zeppelin)
    • Unit - Create 1 Unit for a Player at TempLoc facing Default building facing (270.0) degrees
    • Unit - Order (Last created unit) to Board Goblin Zeppelin
    • Custom script: call RemoveLocation(udg_TempLoc)
TempLoc is a point variable without array.

Note that this interrupts the Zeppelin's orders.

you can also use
  • Unit - Order Goblin Zeppelin to Load (Last created unit)
Instead of the "board", but it comes down to the same.
 
Level 22
Joined
Feb 4, 2005
Messages
3,971
I made a thread about it recently. There is no way to make a game start with units inside the tranposter. However, you can use triggers to make the transporter load units before you even see it so to say. Just place the units right under the ship so that it can load them fast


  • Transport
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units within 300.00 of (Position of Goblin Zeppelin 0002 <gen>)) and do (Unit - Order (Picked unit) to Board Goblin Zeppelin 0002 <gen>)
Board means the units are commanded to 'move' to transport.
Load means Zeppelin is ordered to select a single target to load.
 
Level 7
Joined
Sep 24, 2008
Messages
281
  • Actions
    • Set TempLoc = (Position of Goblin Zeppelin)
    • Unit - Create 1 Unit for a Player at TempLoc facing Default building facing (270.0) degrees
    • Unit - Order (Last created unit) to Board Goblin Zeppelin
    • Custom script: call RemoveLocation(udg_TempLoc)
TempLoc is a point variable without array.

Note that this interrupts the Zeppelin's orders.

you can also use
  • Unit - Order Goblin Zeppelin to Load (Last created unit)
Instead of the "board", but it comes down to the same.

Thank you:thumbs_up:
 
Status
Not open for further replies.
Top