SetActorValue - Actor

Member of: Actor Script

Sets the base value specified actor value on the actor to the passed-in value. Any modifiers are left intact.

SyntaxEdit

Function SetActorValue(string asValueName, float afValue) native

Function SetAV(string asValueName, float afValue)
  SetActorValue(asValueName, afValue)
EndFunction

ParametersEdit

  • asValueName: The name of the actor value to set the value of. Actor Value List
  • afValue: What value to set the actor value to.

Return ValueEdit

None.

ExamplesEdit

; Set the player's health actor value to 50
Game.GetPlayer().SetActorValue("health", 50.0)


; Set Nancy's current health actor value
Nancy.SetAV("Health", 20.0)

NotesEdit

See AlsoEdit