Difference between revisions of "GetBaseActorValue - Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Phinix
imported>Thingy Person
Line 9: Line 9:
float Function GetBaseActorValue(string asValueName) native
float Function GetBaseActorValue(string asValueName) native
float Function GetBaseAV(string asValueName)
float Function GetBaseAV(string asValueName)
  return GetBaseActorValue(asValueName)
EndFunction
</source>
</source>



Revision as of 17:52, 29 June 2013

Member of: Actor Script

Gets the base value of the specified actor value from the actor.

Syntax

float Function GetBaseActorValue(string asValueName) native
float Function GetBaseAV(string asValueName)
  return GetBaseActorValue(asValueName)
EndFunction

Parameters

  • asValueName: The name of the actor value to get the base value of. Actor Value List

Return Value

The base value of the requested actor value.

Examples

; Obtain the player's base health actor value
int playersHealth = Game.GetPlayer().GetBaseActorValue("health")


; Obtain Bob's base health actor value
int bobsHealth = Bob.GetBaseAV("Health")

Notes

See Also