ObjectType
function

Description
Get an object's type.

Arguments
Object A pointer to an object or a unit ID.

Returns
Type The object's type as a bit field of the ObjectTypes table.