Background for Fallout 4
Member of the ObjectReference script
voidfunctionModValue(ActorValueakAV, floatafAmount)Native

Description

Wiki Description

Modifies the specified Actor Value on the Object Reference.

Documentation Comment

Modifies the specified actor value


Caveats


Parameters

ActorValueakAV

CK Wiki Description

The Actor Value to modify. Actor Value List

floatafAmount

CK Wiki Description

How much to modify the value by.


Examples

ActorValue property HealthAV
; Modify the player's current health actor value by 10
Game.GetPlayer().ModValue(HealthAV, 10)
ActorValue property HealthAV
; Modify Jake's current health actor value by -5
Actor Jake= Jake_Alias.GetReference() as Actor
Jake.ModValue(HealthAV, -5)

Auto-Generated Example

ActorValue myActorValue__akAV
float myFloat__afAmount

myObjectReference__toCallFunctionOn.ModValue(myActorValue__akAV, myFloat__afAmount)

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.