ObjectType
Returns the type of a WowGameObject
.
ObjectType(--[[(1)]]objectReference) : type | false
- See Object Reference for more information on possible values.
Example
Get the players current position.
local name = ObjectType('player')
Do something with the names of all objects.
for i, object in ipairs(Objects()) do local name = ObjectType(object) -- do something with nameend
Info
Object Types:
Object = 0,Item = 1,Container = 2,AzeriteEmpoweredItem = 3,AzeriteItem = 4,Unit = 5,Player = 6,ActivePlayer = 7,GameObject = 8,DynamicObject = 9,Corpse = 10,AreaTrigger = 11,SceneObject = 12,ConversationData = 13