Mod:Creation Kit/GetSex - ActorBase

Member of: Mod:Creation Kit/ActorBase Script

Obtains this actor's gender.

Syntax
int Function GetSex native

Parameters
None.

Return Value
The actor's gender, which is one of the following:
 * -1: None
 * 0: Male
 * 1: Female

Examples
ActorBase PlayerBase = Game.GetPlayer.GetBaseObject as ActorBase if (PlayerBase.GetSex == 0) Debug.Trace("Player is male") endIf
 * Is the player male?