Skip to content

instance_exists

CryoEagle edited this page Jan 5, 2019 · 1 revision

instance_exists

Checking if object exists

Syntax:

instance_exists(guid)
Argument Description
Guid guid GameObject to be destroyed

Returns: bool

Description:

This function will check if your selected object exists if not it will return false.

Example:

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

Clone this wiki locally