Difference between revisions of "ScriptEvent:applyDamage"

From Mod Wiki
 
(No difference)

Latest revision as of 10:59, 5 November 2007

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.