Instigator is a reference to the entity that is making the health modification, can be the unit itself. Health is the value to set the health to. A unit halving its own health then might be
Code:
local fraction = 0.5 unit:SetHealth(unit, unit:GetHealth() * fraction)
. Is there also a method to deal x amount of damage to a unit? x being ether a percentage or a absolute hp value. I guess there is not... but would be great. Because I'd like to modify that script for my own purposes.
Statistics: Posted by Lionhardt — 24 Jul 2015, 01:31