Difference between revisions of "RestoreActorValue - Actor"
Jump to navigation
Jump to search
imported>Jlundin (→Syntax) |
imported>Selyb m |
||
Line 28: | Line 28: | ||
Bob.RestoreAV("Health", 5) | Bob.RestoreAV("Health", 5) | ||
</source> | </source> | ||
== Notes == | |||
*Negative numbers will be converted to positive so -100 or 100 will have the same effect. | |||
== See Also == | == See Also == |
Revision as of 03:13, 6 February 2013
Member of: Actor Script
Restores (or "heals") damage done to the specified actor value on this actor.
Syntax
Function RestoreActorValue(string asValueName, float afAmount) native
Function RestoreAV(string asValueName, float afAmount)
Parameters
- asValueName: The name of the actor value to restore. Actor Value List
- afAmount: How much to restore it by.
Return Value
None.
Examples
; Restore the player's health by 10
Game.GetPlayer().RestoreActorValue("health", 10)
; Restore Bob's health by 5
Bob.RestoreAV("Health", 5)
Notes
- Negative numbers will be converted to positive so -100 or 100 will have the same effect.