DamageActorValue - Actor

From the CreationKit Wiki
Revision as of 13:23, 25 October 2011 by imported>Jlundin (→‎Syntax)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script

Applies damage to the specified actor value on this actor.

Syntax

Function DamageActorValue(string asValueName, float afDamage) native
Function DamageAV(string asValueName, float afDamage)

Parameters

  • asValueName: The name of the actor value to damage. Actor Value List
  • afDamage: The amount of damage to apply to the actor value.

Return Value

None.

Examples

; Damage the player's health 10 points
Game.GetPlayer().DamageActorValue("health", 10)


; Damage Bob's health 5 points
Actor Bob = Bob_Alias.GetReference() as Actor
Bob.DamageAV("Health", 5)

See Also