Mod:Creation Kit/ModValue - ObjectReference

Member of: Mod:Creation Kit/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. Mod:Creation Kit/Actor Value List
 * afAmount: How much to modify the value by.

Return Value
None.

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