Background for Fallout 4
Member of the ActorBase script
intfunctionGetSex()Native

Description

Wiki Description

Obtains this actor's gender.

Documentation Comment

Returns this actor's sex. Values for sex are:
-1 - None
0 - Male
1 - Female


Caveats


Examples

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

Auto-Generated Example

int returnedValue = myActorBase__toCallFunctionOn.GetSex()

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.