Difference between revisions of "DamageActorValue"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Geckbot
m (Robot: Automated text replacement (-\[\[Category:(.*?)Functions\]\] +Category:\1Functions\nCategory:\1Functions (GECK 1.0)))
imported>Geckbot
m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1)))
Line 33: Line 33:


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.0)]]
[[Category:Functions (GECK 1.1)]]
[[Category:Actor Value Functions]]
[[Category:Actor Value Functions]]
[[Category:Actor Value Functions (GECK 1.0)]]
[[Category:Actor Value Functions (GECK 1.1)]]
[[Category:Godsend Functions]]
[[Category:Godsend Functions]]
[[Category:Godsend Functions (GECK 1.0)]]
[[Category:Godsend Functions (GECK 1.1)]]

Revision as of 11:48, 15 August 2009

Description

DamageActorValue 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. DamageActorValue will decrease the modifier by the given amount.

Syntax

[ActorREF.]DamageActorValue ActorValue Value
  or
[ActorREF.]DamageAV ActorValue Value

Examples

BuddyRef.DamageActorValue Health 5

For example, suppose you have an NPC with 10 points of health as the current reference. If Buddy has 10 points of health, then this would subtract 5 from the damage modifier and now GetActorValue health returns 5.

Notes

  • Function also accepts floating point numbers.


See Also

Stats List
ForceActorValue
GetActorValue
GetActorValueInfo
GetBaseActorValue
ModActorValue
RestoreActorValue
SetActorValue

Reference

None provided.