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!
hi all can somebody tell me what trigger is to kill a unit if here hp is at 300 hp or 30% like the ultimate of axe in dota i give +rep that people help me
Please be more specific. From what I gathered from that, you mean that if a unit is hit, and it's hitpoints are below certain threshold, it will die even if the actual damage from the hit wouldn't have killed it?
Make it in two triggers (unitvar - variable type unit)
(trigger 1)
Events
Unit is attacked - (generic unit event)
Conditions
Owner of (attacked unit) not equal owner of (attacking unit) - (player comparison)
Actions
set unitvar = (attacked unit)
run trigger 2 (checking conditions)
(trigger 2 previously turned off, NOT TURNED OFF i hope you understand)
Events
unitvar life becomes smaller than 300.00 - (unit - life)
Conditions
--------------------------------
Actions
kill (attacked unit) - (unit - kill)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.