GetValue - ObjectReference
Jump to navigation
Jump to search
Member of: ObjectReference Script
Gets the specified Actor Value from the Object Reference.
Syntax[edit | edit source]
float Function GetValue(ActorValue akAV) native
Parameters[edit | edit source]
- akAV: The Actor Value to get the value of. Actor Value
Return Value[edit | edit source]
The value of the requested Actor Value.
Examples[edit | edit source]
ActorValue property HealthAV
; Obtain the player's current health actor value
int playersHealth = Game.GetPlayer().GetValue(HealthAV) as int
ActorValue property HealthAV
; Obtain Bob's current health actor value
int bobsHealth = Bob.GetValue(HealthAV) as int