On Pre Deal Damage

Combat
Server Side
Both Mobile and PC
Owner:
Combatable

Triggered before the current entity deals damage

Declaration

event OnPreDealDamage(target entity<Combatable>, damageType DamageType, damage int, damagedBodyPart DamagedBodyPartType)
go

Parameters

Name Type Description
Target FightingEntity Entity taking damage
Damage Type DamageType Damage Type
Damage Int Amount of damage caused
Damaged Body Part HitBodyPart Hit Body Part