GetRace - ActorBase
Member of: ActorBase Script
Obtains this actor's Race.
SyntaxEdit
Race Function GetRace() native
ParametersEdit
None.
Return ValueEdit
The Race the actor is.
ExamplesEdit
; Get the race that the player is
ActorBase PlayerBase = Game.GetPlayer().GetBaseObject() as ActorBase
Race PlayerRace = PlayerBase.GetRace()
NotesEdit
- This will not work for a template NPC or LeveledActor as the actor references (ACHR) are dynamically created.