On Player Deal Damage

Combat
Both Server and Client
Both Mobile and PC
Owner:
Game entity

Triggered when a player deals damage

Declaration

event OnPlayerDealDamage(attacker entity<Player>, target entity<Player>, damageType DamageType, value int, damagedBodyPart DamagedBodyPartType)
go

Parameters

Name Type Description
Attacker Player The player who caused the damage
Target Player Player who received damage
Damage Type DamageType Damage Type
Damage Int Damage
Damaged Body Part HitBodyPart Hit Body Part