GetActorValue - Actor

Member of: Actor Script

Gets the specified actor value from the actor.

SyntaxEdit

float Function GetActorValue(string asValueName) native
float Function GetAV(string asValueName)
  return GetActorValue(asValueName)
EndFunction

ParametersEdit

Return ValueEdit

The value of the requested actor value.

ExamplesEdit

; Obtain the player's current health actor value
Float fPlayerHealth = Game.GetPlayer().GetActorValue("Health")


; Obtain Bob's current Sneak actor value
Float fBobSneak = Bob.GetAV("Sneak")

NotesEdit

  • GetActorValue is slightly faster than GetAV as it is native.
  • This function returns the current value as opposed to the base (maximum) value. To get the base value see GetBaseActorValue - Actor.

See AlsoEdit