GetSex - ActorBase

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ActorBase Script

Obtains this actor's gender.

Syntax[edit | edit source]

int Function GetSex() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

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

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

Examples[edit | edit source]

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

See Also[edit | edit source]