Difference between revisions of "GetRace - ActorBase"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>JustinOther
(Added note about LVLNs and templated actors/Linked GetLeveledActorBase)
imported>JustinOther
(→‎See Also: Oops. Link revised)
 
Line 28: Line 28:
== See Also ==
== See Also ==
*[[ActorBase Script]]
*[[ActorBase Script]]
*[[GetLeveledActorBase - Actor]]
*[[GetLeveledActorBase - Actor|GetLeveledActorBase]]

Latest revision as of 12:54, 25 January 2013

Member of: ActorBase Script

Obtains this actor's Race.

Syntax[edit | edit source]

Race Function GetRace() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

The Race the actor is.

Examples[edit | edit source]

; Get the race that the player is
ActorBase PlayerBase = Game.GetPlayer().GetBaseObject() as ActorBase
Race PlayerRace = PlayerBase.GetRace()

Notes[edit | edit source]

  • This will not work for a template NPC or LeveledActor as the actor references (ACHR) are dynamically created.

See Also[edit | edit source]