Skip to content
User Avatar
#3874
Auto-translated
Good afternoon.
Does anyone know if it's possible to redefine a unit's behavior in hooks? For example, a unit fires, and then a certain effect is applied to the unit that received the damage.
I only saw UnitMove, which is then divided into "sub-hooks."
But in all of them, only the sUnitName parameter is passed.
So, it seems that you can only control the attacking unit, but not the unit being attacked.
Is there a way to find out which unit is being attacked and how much damage it received?