instance_destroy()
From ENIGMA
Description
Destroys the object calling the code. To destroy other objects, use the with statement.
Parameters
| Parameter | Description |
|---|---|
| none | this function has no parameters |
Return Values
void: This function does not return anything.
Example Call
// demonstrates telling an object to destroy itself
with (myobject) {
instance_destroy();
}
with (myobject) {
instance_destroy();
}