Returns the creature type of a unit. Note that some creatures have no type (e.g. slimes).
See also Unit functions.
Signature:
type
=
UnitCreatureType("unit")
Arguments:
unit
- A unit to query (string
, unitID)
Returns:
type
- Localized name of the type of creature (e.g. Beast, Humanoid, Undead), or nil if not applicable (string
)