Background for Fallout 4
Member of the ObjectReference script
voidfunctionDamageValue(ActorValueakAV, floatafDamage)Native

Description

Wiki Description

Applies damage to the specified Actor Value on this Object Reference.

Documentation Comment

Damages the given actor value


Parameters

  1. ActorValueakAV

    CK Wiki Description

    The Actor Value to damage. Actor Value List

  2. floatafDamage

    CK Wiki Description

    The amount of damage to apply to the actor value.


Examples

ActorValue property HealthAV
; Damage the player's health 10 points
Game.GetPlayer().DamageValue(HealthAV, 10)
ActorValue property HealthAV
; Damage Bob's health 5 points
Actor Bob = Bob_Alias.GetReference() as Actor
Bob.DamageValue(HealthAV, 5)

Auto-Generated Example

ActorValue myActorValue__akAV
float myFloat__afDamage

myObjectReference__toCallFunctionOn.DamageValue(myActorValue__akAV, myFloat__afDamage)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.