Difference between revisions of "GetActorValue - Actor"
m
→Notes: those are the same thing
imported>Jlundin (→Syntax) |
imported>DavidJCobb m (→Notes: those are the same thing) |
||
(10 intermediate revisions by 7 users not shown) | |||
Line 9: | Line 9: | ||
float Function GetActorValue(string asValueName) native | float Function GetActorValue(string asValueName) native | ||
float Function GetAV(string asValueName) | float Function GetAV(string asValueName) | ||
return GetActorValue(asValueName) | |||
EndFunction | |||
</source> | </source> | ||
Line 20: | Line 22: | ||
<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 | ; Obtain Bob's current Sneak actor value | ||
Float fBobSneak = Bob.GetAV("Sneak") | |||
</source> | </source> | ||
== Notes == | |||
*GetActorValue is slightly faster than GetAV as it is native. | |||
*This function returns the current value as opposed to the base (maximum) value. To get the base value see [[GetBaseActorValue - Actor]]. | |||
== See Also == | == See Also == | ||
*[[Actor | *[[GetBaseActorValue - Actor]] | ||
*[[Actor | *[[GetActorValuePercentage - Actor]] | ||
*[[DamageActorValue - Actor]] | *[[DamageActorValue - Actor]] | ||
*[[ModActorValue - Actor]] | |||
*[[ForceActorValue - Actor]] | *[[ForceActorValue - Actor]] | ||
*[[RestoreActorValue - Actor]] | *[[RestoreActorValue - Actor]] | ||
*[[SetActorValue - Actor]] | *[[SetActorValue - Actor]] | ||
*[[Actor Value List]] | |||
*[[Actor Script]] |