Skip to content

event onDamage (client-side)

Available since version: 0.0.1

This event can be canceled

This event is triggered when hero is damaged, by not player or npc.


int damage, int flags
  • int damage: a value representing the amount of health the player lost.
  • int flags: an flags representing the types of damage. For more information see damage flags