Lua API
On this page

Combat_HandleDefenderNotificationEvent_S2C

Inherits from

HandleDefenderNotificationEvent: You have been hit by a creatures melee attack.

Fields:

Conditions AttackConditionsMask

additional information about the attack, such as whether it was a Sneak Attack, etc.

Critical boolean

critical hit: 0=no, 1=yes

DamageDone number

the amount of damage done

DamagePercent number

percentage of targets hp removed by damage. 0.0 (low) to 1.0 (high)

DamageType DamageType

the type of damage done

Location DamageLocation

the location of the damage done

Name string

the name of the creature

Methods:

GetPropertyKeys() : string[]

Returns a list of strings of all public property / field names. Useful for reflection on UserData in lua scripts

Returns:string[]

ToString() : string

Returns a string that represents the current object.

Returns:string