Delete
Deletes itself.

Description
The Delete block removes the agent executing the stack of code. This is a code block part of the agents drawer.
Usage
Deletes the agent executing the stack of code.
Syntax
This block has no inputs.
Example
When a prey agent collides with a predator agent (i.e. they have the same x, y, and z coordinates) the prey agent deletes itself. This interaction makes it appear as if the predator eats the prey.

Notes
Deletedoes not delete all agents of a type.Deletedeletes only the single agent that runs the block. See related blocks for other code blocks with similar delete functions.- No code may be placed underneath the delete block as there will be no agent available to run the code.
Related Blocks
- Delete Everyone - Deletes all agents in the simulation
- Delete Agent - Deletes a specific agent by reference