Difference between revisions of "GetActorValue - Actor"
Jump to navigation
Jump to search
imported>Phinix |
|||
(3 intermediate revisions by 3 users not shown) | |||
Line 8: | Line 8: | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
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 30: | Line 32: | ||
== Notes == | == Notes == | ||
*GetActorValue is slightly faster than GetAV as it is native. | *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]]. | *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 == | ||
*[[GetBaseActorValue - Actor]] | *[[GetBaseActorValue - Actor]] | ||
*[[GetActorValuePercentage - Actor]] | *[[GetActorValuePercentage - Actor]] | ||
*[[GetActorValueMax - Actor]] | |||
*[[DamageActorValue - Actor]] | *[[DamageActorValue - Actor]] | ||
*[[ModActorValue - Actor]] | *[[ModActorValue - Actor]] |
Latest revision as of 05:59, 30 May 2024
Member of: Actor Script
Gets the specified actor value from the actor.
Syntax[edit | edit source]
float Function GetActorValue(string asValueName) native
float Function GetAV(string asValueName)
return GetActorValue(asValueName)
EndFunction
Parameters[edit | edit source]
- asValueName: The name of the actor value to get the value of. Actor Value List
Return Value[edit | edit source]
The value of the requested actor value.
Examples[edit | edit source]
; 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[edit | edit source]
- 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.