Background for Skyrim SE
Member of the Actor script
voidfunctionDamageActorValue(stringasValueName, floatafDamage)Native

Description

Wiki Description

Applies damage to the specified actor value on this actor.

Documentation Comment

Damages the specified actor value


Caveats

CK Wiki - Notes

  • This function modifies the current value as opposed to the base value.
  • Negative numbers will be converted to positive so -100 and 100 will have the same effect.

Parameters

stringasValueName

CK Wiki Description

The name of the actor value to damage. Actor Value List

floatafDamage

CK Wiki Description

The amount of damage to apply to the actor value.


Examples

; Damage the player's health 10 points
Game.GetPlayer().DamageActorValue("Health", 10.0)
; Damage Bob's health 5 points
Actor Bob = Bob_Alias.GetReference() As Actor
Bob.DamageAV("Health", 5.0)

Auto-Generated Example

string myString__asValueName
float myFloat__afDamage

myActor__toCallFunctionOn.DamageActorValue(myString__asValueName, myFloat__afDamage)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.