RestoreValue - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Restores (or "heals") damage done to the specified Actor Value on this Object Reference.

Syntax[edit | edit source]

Function RestoreActorValue(ActorValue akAV, float afAmount) native

Parameters[edit | edit source]

  • akAV: The Actor Value to restore. Actor Value List
  • afAmount: How much to restore it by.

Return Value[edit | edit source]

None.

Examples[edit | edit source]

ActorValue property HealthAV
; Restore the player's health by 10
Game.GetPlayer().RestoreValue(HealthAV, 10)


ActorValue property HealthAV
; Restore Bob's health by 5
Bob.RestoreValue(HealthAV, 5)

See Also[edit | edit source]