GetSex - ActorBase

From the CreationKit Wiki
Revision as of 17:22, 1 January 2014 by imported>Chesko (Modified example to use GetActorBase() instead of GetBaseObject() as ActorBase.)
Jump to navigation Jump to search

Member of: ActorBase Script

Obtains this actor's sex.

Syntax

int Function GetSex() native

Parameters

None.

Return Value

The actor's sex, which is one of the following:

  • -1: None
  • 0: Male
  • 1: Female

Examples

; Is the player male?
ActorBase PlayerBase = Game.GetPlayer().GetActorBase()
if (PlayerBase.GetSex() == 0)
  Debug.Trace("Player is male")
endIf

See Also