DestroyObject

Description

Destroys (removes) an object that was created using CreateObject.

NameDescription
objectidThe ID of the object to destroy. Returned by CreateObject.

Returns

This function does not return any specific values.

Examples

public OnObjectMoved(objectid)
{
DestroyObject(objectid);
return 1;
}

Related Functions