Mod:Creation Kit/DamageValue - ObjectReference

Member of: Mod:Creation Kit/ObjectReference Script

Applies damage to the specified Actor Value on this Object Reference.

Syntax
Function DamageValue(ActorValue akAV, float afDamage) native

Parameters

 * akAV: The Actor Value to damage. Mod:Creation Kit/Actor Value List
 * afDamage: The amount of damage to apply to the actor value.

Return Value
None.

Examples
ActorValue property HealthAV Game.GetPlayer.DamageValue(HealthAV, 10) ActorValue property HealthAV Actor Bob = Bob_Alias.GetReference as Actor Bob.DamageValue(HealthAV, 5)
 * Damage the player's health 10 points
 * Damage Bob's health 5 points