Difference between revisions of "GetActorValue - Actor"

218 bytes added ,  14:09, 21 June 2018
m
→‎Notes: those are the same thing
imported>JustinOther
(Floatified vars. Added note about expedience via use of native version.)
imported>DavidJCobb
m (→‎Notes: those are the same thing)
 
(7 intermediate revisions by 5 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) native
float Function GetAV(string asValueName)
  return GetActorValue(asValueName)
EndFunction
</source>
</source>


Line 24: Line 26:
<br/>
<br/>
<source lang="papyrus">
<source lang="papyrus">
; Obtain Bob's current health actor value
; Obtain Bob's current Sneak actor value
Float fBobSneak = Bob.GetAV("Sneak")
Float fBobSneak = Bob.GetAV("Sneak")
</source>
</source>


==Note==
== 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 (maximum) value. To get the base value see [[GetBaseActorValue - Actor]].


== See Also ==
== See Also ==
*[[Actor Value List]]
*[[GetBaseActorValue - Actor]]
*[[Actor Script]]
*[[GetActorValuePercentage - Actor]]
*[[DamageActorValue - Actor]]
*[[DamageActorValue - Actor]]
*[[ModActorValue - Actor]]
*[[ForceActorValue - Actor]]
*[[ForceActorValue - Actor]]
*[[GetBaseActorValue - Actor]]
*[[ModActorValue - Actor]]
*[[RestoreActorValue - Actor]]
*[[RestoreActorValue - Actor]]
*[[SetActorValue - Actor]]
*[[SetActorValue - Actor]]
*[[Actor Value List]]
*[[Actor Script]]
Anonymous user