ObjectIsType
function

Description
Get whether an object is of one or more types.

Arguments
Object A pointer to an object or a unit ID. ... One or more members of the ObjectTypes table.

Returns
IsType true if the object is of one or more of the specified types, or false if it is not.