Difference between revisions of "GetActorValue - Actor"
Jump to navigation
Jump to search
Floatified vars. Added note about expedience via use of native version.
imported>Moorleiche2k (→Syntax) |
imported>JustinOther (Floatified vars. Added note about expedience via use of native version.) |
||
Line 20: | Line 20: | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; Obtain the player's current health actor value | ; Obtain the player's current health actor value | ||
Float fPlayerHealth = Game.GetPlayer().GetActorValue("Health") | |||
</source> | </source> | ||
<br/> | <br/> | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; Obtain Bob's current health actor value | ; Obtain Bob's current health actor value | ||
Float fBobSneak = Bob.GetAV("Sneak") | |||
</source> | </source> | ||
==Note== | |||
*GetActorValue is slightly faster than GetAV as it is native. | |||
== See Also == | == See Also == |