RestoreValue - ObjectReference

Member of: ObjectReference Script

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

SyntaxEdit

Function RestoreActorValue(ActorValue akAV, float afAmount) native

ParametersEdit

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

Return ValueEdit

None.

ExamplesEdit

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 AlsoEdit