Background for Fallout 4
Member of the ObjectReference script
voidfunctionRestoreValue(ActorValueakAV, floatafAmount)Native

Description

Wiki Description

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

Documentation Comment

Restores damage done to the actor value(up to 0 damage)


Caveats


Parameters

ActorValueakAV

CK Wiki Description

The Actor Value to restore. Actor Value List

floatafAmount

CK Wiki Description

How much to restore it by.


Examples

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)

Auto-Generated Example

ActorValue myActorValue__akAV
float myFloat__afAmount

myObjectReference__toCallFunctionOn.RestoreValue(myActorValue__akAV, myFloat__afAmount)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.