Background for Skyrim SE
Member of the Actor script
floatfunctionGetActorValue(stringasValueName)Native

Description

Wiki Description

Gets the specified actor value from the actor.

Documentation Comment

Gets the specified actor value - returns 0 and logs an error if the value is unknown


Caveats

CK Wiki - Notes

  • 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 Actor.GetBaseActorValue(...).

Parameters

stringasValueName

CK Wiki Description

The name of the actor value to get the value of. Actor Value List


Examples

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

Auto-Generated Example

string myString__asValueName

float returnedValue = myActor__toCallFunctionOn.GetActorValue(myString__asValueName)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.