GetActorValue - Actor

Revision as of 00:53, 27 January 2013 by imported>JustinOther (Floatified vars. Added note about expedience via use of native version.)

Member of: Actor Script

Gets the specified actor value from the actor.

Syntax

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

Parameters

Return Value

The value of the requested actor value.

Examples

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


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

Note

  • GetActorValue is slightly faster than GetAV as it is native.

See Also