IsValidObject

Description

Checks if an object with the ID provided exists.

NameDescription
objectidThe ID of the object to check the existence of.

Returns

1: The object exists.

0: The object does not exist.

Examples

if (IsValidObject(objectid))
{
DestroyObject(objectid);
}

Notes

warning

This is to check if an object exists, not if a model is valid.

Related Functions