GetObjectType

The   NWScript command serves to identify what kind of object its parameter is, returning am OBJECT_TYPE_* constant. If its parameter is not a valid object, it returns -1 (not an OBJECT_TYPE_* constant).

Known issues
The OBJECT_TYPE_* constants are not exhaustive, so there are some object types that this command cannot identify. In particular, to identify an area,  may be more useful, while equality with   would be a test for an object being the module.