Background for Skyrim SE
Member of the Actor script
voidfunctionRestoreActorValue(stringasValueName, floatafAmount)Native

Description

Wiki Description

Restores (or "heals") damage done to the specified actor value on this actor.

Documentation Comment

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


Caveats

CK Wiki - Notes

  • Negative numbers will be converted to positive so -100 or 100 will have the same effect.

Parameters

stringasValueName

CK Wiki Description

The name of the actor value to restore. Actor Value List

floatafAmount

CK Wiki Description

How much to restore it by.


Examples

; Restore the player's health by 10
Game.GetPlayer().RestoreActorValue("health", 10)
; Restore Bob's health by 5
Bob.RestoreAV("Health", 5)

Auto-Generated Example

string myString__asValueName
float myFloat__afAmount

myActor__toCallFunctionOn.RestoreActorValue(myString__asValueName, myFloat__afAmount)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.