On Pre Take Damage

Combat
Server Side
Both Mobile and PC
Owner:
Combatable

Triggered before the current entity takes damage.

Declaration

event OnPreTakeDamage(attacker entity<Entity>, damageType DamageType, damage int, damagedBodyPart DamagedBodyPartType)
go

Parameters

Name Type Description
Attacker Entity The attacker entity, can be null
Damage Type DamageType Damage Type
Damage Int Amount of damage caused
Damaged Body Part HitBodyPart Hit Body Part