Prompts the article to despawn, but not immediately deleting it. Using this on a custom article only sets its destroyed variable to true, meaning the article might not be able to be destroyed.
Argument | Type | Description |
---|---|---|
instance_id | :real | The Instance ID of the article to destroy. |
Example, called from update.gml:
// This code attmpts to destroy the closest kragg rock to the player:
var near = instance_nearest(x, y, asset_get("rock_obj"));
article_destroy(near);