GetSex - ActorBase
Member of: ActorBase Script
Obtains this actor's gender.
SyntaxEdit
int Function GetSex() native
ParametersEdit
None.
Return ValueEdit
The actor's gender, which is one of the following:
- -1: None
- 0: Male
- 1: Female
ExamplesEdit
; Is the player male?
ActorBase PlayerBase = Game.GetPlayer().GetBaseObject() as ActorBase
if (PlayerBase.GetSex() == 0)
Debug.Trace("Player is male")
endIf