GetRace - ActorBase

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

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()

See Also[edit | edit source]