GetActorValue - Actor
Revision as of 17:11, 20 June 2012 by imported>Moorleiche2k (→Syntax)
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
- asValueName: The name of the actor value to get the value of. Actor Value List
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