Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

AltStyle によって変換されたページ (->オリジナル) /