Mod:Creation Kit/SetValue - ObjectReference

Member of: Mod:Creation Kit/ObjectReference Script

Sets the base value specified Actor Value on the Object Reference to the passed-in value. Any modifiers are left intact.

Syntax
Function SetValue(ActorValue akAV, float afValue) native

Parameters

 * akAV: The Actor Value to set the value of. Mod:Creation Kit/Actor Value
 * afValue: What value to set the actor value to.

Return Value
None.

Examples
ActorValue property HealthAV Game.GetPlayer.SetValue(HealthAV, 50) ActorValue property HealthAV Nancy.SetValue(HealthAV, 20)
 * Set the player's health actor value to 50
 * Set Nancy's current health actor value