On Player - on Pre Damage (Event) — Lusk
Addon: Lusk · Category: Event · Since: 1.0.0
Syntax
[on] pre[-| ]damageDescription
Called when the player tries to attack an entity. This occurs before any of the damage logic, so cancelling this event will prevent any sort of sounds from being played when attacking. This event will fire as cancelled for certain entities, use the "will be damaged" condition to check if the entity will not actually be attacked. Note: there may be other factors (invulnerability, etc) that will prevent this entity from being attacked that this event will not cover.
Event Values
- event-entity
- event-player
- event-world
Examples