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

[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:
 
  • 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.
 
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.
 
  • 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.
Back
Top