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

[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