RestoreValue - ObjectReference

From the Fallout4 CreationKit Wiki
Revision as of 10:02, 4 October 2013 by imported>DarkruneDK (Created page with "Category:Scripting Category:Papyrus '''Member of:''' ObjectReference Script Restores (or "heals") damage done to the specified Actor Value on this Object Reference. ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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]