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

Unit-Type Comparison: Upgraded Unit Type

Status
Not open for further replies.
Level 15
Joined
Aug 31, 2009
Messages
776
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?
 
Level 10
Joined
Oct 22, 2006
Messages
599
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.
Top