ModValue - ObjectReference

Member of: ObjectReference Script

Modifies the specified Actor Value on the Object Reference.

SyntaxEdit

Function ModValue(ActorValue akAV, float afAmount) native

ParametersEdit

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

Return ValueEdit

None.

ExamplesEdit

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 AlsoEdit