ModValue - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Modifies the specified Actor Value on the Object Reference.

Syntax[edit | edit source]

Function ModValue(ActorValue akAV, float afAmount) native

Parameters[edit | edit source]

  • akAV: The Actor Value to modify. Actor Value List
  • afAmount: How much to modify the value by.

Return Value[edit | edit source]

None.

Examples[edit | edit source]

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)

See Also[edit | edit source]