SetActorValue - Actor

From the CreationKit Wiki
Revision as of 16:06, 10 August 2015 by imported>Bug64 (Cosmetic edit)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script

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

Syntax[edit | edit source]

Function SetActorValue(string asValueName, float afValue) native

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

Parameters[edit | edit source]

  • 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 Value[edit | edit source]

None.

Examples[edit | edit source]

; 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)

Notes[edit | edit source]

See Also[edit | edit source]