Don't think there is such a function.. You will need to make it yourself.
You can make a trigger with the unit takes damage event. Then you can use "Trigger Damage Ammount" to get the amount of damage caused, and add that to a custom value of the damaging unit. That way, you just read that custom value whenever you want to know how much damage a unit has caused.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
i made a trigger but i need to know what function i need to use to get the total amount of damage dealth by an unit.
Don't think there is such a function.. You will need to make it yourself.
You can make a trigger with the unit takes damage event. Then you can use "Trigger Damage Ammount" to get the amount of damage caused, and add that to a custom value of the damaging unit. That way, you just read that custom value whenever you want to know how much damage a unit has caused.