Difference between revisions of "GetActorValue - Actor"
Jump to navigation
Jump to search
imported>Phinix (→Notes) |
imported>Phinix |
||
Line 39: | Line 39: | ||
*[[ForceActorValue - Actor]] | *[[ForceActorValue - Actor]] | ||
*[[GetBaseActorValue - Actor]] | *[[GetBaseActorValue - Actor]] | ||
*[[GetActorValuePercentage - Actor]] | |||
*[[ModActorValue - Actor]] | *[[ModActorValue - Actor]] | ||
*[[RestoreActorValue - Actor]] | *[[RestoreActorValue - Actor]] | ||
*[[SetActorValue - Actor]] | *[[SetActorValue - Actor]] |
Revision as of 23:15, 23 June 2013
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
Float fPlayerHealth = Game.GetPlayer().GetActorValue("Health")
; Obtain Bob's current Sneak actor value
Float fBobSneak = Bob.GetAV("Sneak")
Notes
- GetActorValue is slightly faster than GetAV as it is native.
- This function returns the current value as opposed to the base value. To get the base value see GetBaseActorValue - Actor.
- GetBaseActorValue - Actor returns the possible max value of a stat BEFORE buffs. To get the player's current percent of a stat after buffs (with examples how to get the max buffed value or a percent of the max buffed value of a stat as well), see GetActorValuePercentage - Actor