Difference between revisions of "GetActorValue - Actor"
Jump to navigation
Jump to search
imported>Selyb m (→Notes) |
imported>Thynar |
||
Line 24: | Line 24: | ||
<br/> | <br/> | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; Obtain Bob's current | ; Obtain Bob's current Sneak actor value | ||
Float fBobSneak = Bob.GetAV("Sneak") | Float fBobSneak = Bob.GetAV("Sneak") | ||
</source> | </source> |
Revision as of 11:22, 18 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.