• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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