ScriptEvent:applyDamage
From Mod Wiki
Contents |
[edit]
Parameters
entity inflictor -- Entity which is applying the damage. entity attacker -- Entity responsible for the damage. vector direction -- Direction the damage is applied in. integer damage -- Index of the damageDef to apply. float scale -- Scale factor to apply to the damage. object trace -- Trace object that represents the collision, if any.
[edit]
Result
None.
[edit]
Supported By
idEntity
[edit]
Functionality
Applies damage from the specified damageDecl to this entity.
