C_PlayerInfo .GetSex
Jump to navigation
Jump to search
Returns the sex of a player.
sex = C_PlayerInfo.GetSex(playerLocation)
Arguments
- playerLocation
- PlayerLocationMixin🔗
Returns
- sex
- Enum.UnitSex?
Value | Field | Description |
---|---|---|
0 | Male | |
1 | Female | |
2 | None | |
3 | Both | |
4 | Neutral |
Example
Returns the gender of your character.
/dump C_PlayerInfo.GetSex(PlayerLocation:CreateFromUnit("player")) -- 1 (Female)
Patch changes
Patch 8.0.1 (2018-07-17): Added.
See also
- UnitSex()