Difference between revisions of "RestoreActorValue"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Quetzilla
imported>Jduvall
Line 25: Line 25:
[[GetActorValueInfo]]<br>
[[GetActorValueInfo]]<br>
[[GetBaseActorValue]]<br>
[[GetBaseActorValue]]<br>
[[GetPermanentActorValue]]<br>
[[ModActorValue]]<br>
[[ModActorValue]]<br>
[[SetActorValue]]<br>
[[SetActorValue]]<br>

Revision as of 16:19, 16 June 2009

Description

RestoreActorValue is called on a Reference and takes two parameters, an ActorValue and a value. The Function alters the damage modifier of a given actor value. The damage modifier is always a negative number, or zero if there is no damage to the actor value. RestoreActorValue will increase the modifier by the given amount or to 0.

Syntax

[ActorREF.]RestoreActorValue ActorValue value
   or
[ActorREF.]RestoreAV ActorValue value

Examples

BuddyRef.RestoreActorValue Health 20

If Buddy has 10 points of health, adds 0 to the damage modifier, because it cannot go above zero GetActorValue health returns 10.

Notes

  • Function also accepts floating point numbers.


See Also

Stats List
DamageActorValue
ForceActorValue
GetActorValue
GetActorValueInfo
GetBaseActorValue
GetPermanentActorValue
ModActorValue
SetActorValue

Reference

None provided.