• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Health Check

Status
Not open for further replies.
Level 2
Joined
Aug 12, 2011
Messages
11
I'm prolly jus really tired and I have done this trigger before (been a long time since I have used WE), and I need a trigger that checks the units health before it changes owners.

such as;
Event: A unit is attacked
Condition: Attacked unit is equal to my unit
Action: If/then/else: integer comparison (this is what im stuck on, need to check health of unit) then change ownership of unit, set health of (attacked unit) to 100% then do nothing.
 
Status
Not open for further replies.
Top