Background for Skyrim SE
Member of the ActorBase script
intfunctionGetSex()Native

Description

Wiki Description

Obtains this actor's sex.

Documentation Comment

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


Caveats

CK Wiki - Notes

  • To check for the sex of a Leveled Actor spawned in the world and not the Leveled Actor's ActorBase in the Editor, call this function on Actor.GetLeveledActorBase().

Examples

; Is the player male?
ActorBase PlayerBase = Game.GetPlayer().GetActorBase()
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 Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.