• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Unit-Type Comparison: Upgraded Unit Type

Status
Not open for further replies.
Level 14
Joined
Aug 31, 2009
Messages
775
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 9
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