ScriptEvent:applyDamage

From Mod Wiki

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.

Result

None.

Supported By

idEntity

Functionality

Applies damage from the specified damageDecl to this entity.