GetRace - ActorBase

From the CreationKit Wiki
Revision as of 15:27, 18 October 2011 by imported>Rhavlovick (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ActorBase Script

Obtains this actor's Race.

Syntax

Race Function GetRace() native

Parameters

None.

Return Value

The Race the actor is.

Examples

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

See Also