Checking if object exists
instance_exists(guid)
Guid
Returns: bool
bool
This function will check if your selected object exists if not it will return false.
if (instance_exists(typeof(oSampleObject))) { instance_destroy(this); }
This code will delete GameObject with this code when oSampleObject exists in current room.
GameObject
Back to Instances
There was an error while loading. Please reload this page.