DamageActorValueAlt
From GECK
Function Deprecated This function should no longer be used. This page has been left for historical documentation purposes only. xNVSE allows using Actor Value codes without the need for alternative functions. |
A function added by the JohnnyGuitar NVSE Plugin.
Contents
Description
DamageActorValueAlt alters the damage modifier of a given actor value using a numeric Actor Value code instead of a stat name. The damage modifier is always a negative number, or zero if there is no damage to the actor value. DamageActorValueAlt will decrease the modifier by the given amount.
Syntax
[ActorRefID].DamageActorValueAlt ActorValueCode:int Value:int|float
Or:
[ActorRefID].DamageAVAlt ActorValueCode:int Value:int|float
Example
BuddyRef.DamageActorValueAlt 16 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.