Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API UnitSex

Last wiki revision 2022-08-01

Returns the gender of the unit. gender = UnitSex(unit)

  • unit: : UnitId
  • sex:

local genders = {"unknown", "male", "female"} if UnitExists("target") then print("The target is "..genders[UnitSex("target")]) end

  • Most non-humanoid mobs/creatures will appear as Neutrum/Unknown.
  • Player characters currently appear as either Male or Female.
  • At an unknown time after 1.10, sheeped targets stopped returning 'unknown' and began providing the 'true' gender

Source

https://warcraft.wiki.gg/wiki/API_UnitSex · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.