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
- Actor Value List
- Actor
- Actor.DamageActorValue(...)
- Actor.ForceActorValue(...)
- Actor.GetActorValue(...)
- Actor.GetBaseActorValue(...)
- Actor.ModActorValue(...)
- Actor.SetActorValue(...)
