ScriptEvent:applyDamage

From Mod Wiki
Revision as of 10:59, 5 November 2007 by Wizz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.