DamageValue - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

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

Syntax[edit | edit source]

Function DamageValue(ActorValue akAV, float afDamage) native

Parameters[edit | edit source]

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

Return Value[edit | edit source]

None.

Examples[edit | edit source]

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[edit | edit source]