RestoreActorValue - Actor
Revision as of 16:50, 29 June 2013 by imported>Thingy Person (→Syntax)
Member of: Actor Script
Restores (or "heals") damage done to the specified actor value on this actor.
Syntax[edit | edit source]
Function RestoreActorValue(string asValueName, float afAmount) native
Function RestoreAV(string asValueName, float afAmount)
RestoreActorValue(asValueName, afAmount)
EndFunction
Parameters[edit | edit source]
- asValueName: The name of 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]
; Restore the player's health by 10
Game.GetPlayer().RestoreActorValue("health", 10)
; Restore Bob's health by 5
Bob.RestoreAV("Health", 5)
Notes[edit | edit source]
- Negative numbers will be converted to positive so -100 or 100 will have the same effect.