(objectid)
objectid
The ID of the object to check the existence of.
- 1: The object exists.
- 0: The object does not exist.
Important Note: This is to check if an object exists, not if a model is valid.
if(IsValidObject(objectid)) DestroyObject(objectid);