Difference between revisions of "GetActorValue - Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>JustinOther
(Floatified vars. Added note about expedience via use of native version.)
imported>Selyb
Line 28: Line 28:
</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 value. To get the base value see [[GetBaseActorValue - Actor]].


== See Also ==
== See Also ==

Revision as of 03:06, 6 February 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

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 health 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.

See Also