ModValue - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

Modifies the specified Actor Value on the Object Reference.

Syntax

Function ModValue(ActorValue akAV, float afAmount) native

Parameters

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

Return Value

None.

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)

See Also