Unit-Type Comparison: Upgraded Unit Type

Status
Not open for further replies.
Level 15
Joined
Aug 31, 2009
Messages
778
How can I check for what unit type a unit has upgraded into?

For example, I want a building which is capable of upgrading into 5 different buildings to be upgraded by a player. Depending on what it is upgraded into, I want a trigger to do different things.

Thing is, there seems to be no way to check for what it has upgraded into.

Any sort of solutions to this?
 
Have you tried this?
  • Upgrated
    • Events
      • Unit - A unit Finishes an upgrade
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Triggering unit)) Equal to Cannon Tower
        • Then - Actions
        • Else - Actions
When a unit finishes the upgrate it turns to something else, checking that unit-type of something else and doing the actions needed should work.
 
Status
Not open for further replies.
Back
Top