Detecting transported unit..help

Status
Not open for further replies.
Level 9
Joined
Jul 20, 2009
Messages
427
Any ideas on how I could do this?
1.Whenever I create a unit=tank it cannot attack and move unless a specific unit type is transported inside it?
A trigger that would detect if a certain unit type is loaded into a transport thus allowing the tank to attack,use spells and move...
please post the triggers for this thanks..
 
Level 6
Joined
Apr 12, 2009
Messages
156
Seems easy enough. I'm no master, but I believe this will suffice.

  • Tank Made
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • (Unit-type of (Last created unit)) Equal to Fatty Tank Driver
    • Actions
      • Animation - Change (Last created unit)'s animation speed to 0.00% of its original speed
And then...

  • Tank Loaded
    • Events
      • Unit - A unit Is loaded into a transport
    • Conditions
      • (Loading unit) Equal to Fatty Tank
    • Actions
      • Animation - Change (Transporting unit)'s animation speed to 100.00% of its original speed
      • Unit - Add Phat Missil to (Transporting unit)
      • Unit - Add Phat Phatty Phat Missil to (Transporting unit)
So you can't give the tank abilities inherently: you have to give them through triggers as shown in my set-up.

As for the possibility of the unit being unloaded? I don't know. There's no event called 'A unit Is unloaded from a transport'.
 
Status
Not open for further replies.
Top