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

[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