ModValue - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

Modifies the specified Actor Value on the Object Reference.


Function ModValue(ActorValue akAV, float afAmount) native


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

Return Value



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