DamageValue - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

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


Function DamageValue(ActorValue akAV, float afDamage) native


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

Return Value



ActorValue property HealthAV
; Damage the player's health 10 points
Game.GetPlayer().DamageValue(HealthAV, 10)

ActorValue property HealthAV
; Damage Bob's health 5 points
Actor Bob = Bob_Alias.GetReference() as Actor
Bob.DamageValue(HealthAV, 5)

See Also