[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