GetActorValue - Actor

Revision as of 14:23, 25 October 2011 by imported>Jlundin (→‎Syntax)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Actor Script

Gets the specified actor value from the actor.

Syntax

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

Parameters

Return Value

The value of the requested actor value.

Examples

; Obtain the player's current health actor value
int playersHealth = Game.GetPlayer().GetActorValue("health") as int


; Obtain Bob's current health actor value
int bobsHealth = Bob.GetAV("Health") as int

See Also