Method Object:GetTypeId [-] [+]

Returns the TypeId of the Object.

enum TypeID
{
    TYPEID_OBJECT        = 0,
    TYPEID_ITEM          = 1,
    TYPEID_CONTAINER     = 2,
    TYPEID_UNIT          = 3,
    TYPEID_PLAYER        = 4,
    TYPEID_GAMEOBJECT    = 5,
    TYPEID_DYNAMICOBJECT = 6,
    TYPEID_CORPSE        = 7
};

Synopsis

typeID = Object:GetTypeId()

Arguments

None.

Returns

number typeID

Valid numbers: integers from 0 to 255.

Generated on
© 2010 - 2024 Eluna Lua Engine