- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 19
instance_exists
        CryoEagle edited this page Jan 5, 2019 
        ·
        1 revision
      
    Checking if object exists
instance_exists(guid)| Argument | Description | 
|---|---|
| Guidguid | GameObject to be destroyed | 
Returns: 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.
Back to Instances