Delete Agent
Deletes the specified agent (use "collidee", "nearest", or "my parent" blocks).

Description
The Delete Agent block removes a specific agent from Spaceland. This block requires an agent reference as input, which can be obtained from blocks like collidee, nearest, or my parent.
Usage
Delete Agent is used to delete a specific agent from Spaceland.
Syntax
Inputs in this block:
- A block that represents an agent (e.g. me, my parent, or nearest)
Format: delete agent [Special: Agent Reference]

Example
When a red block collides with a blue block, from the red block's perspective the blue block is the collidee. Following a collision, the delete agent block allows for the red block to delete the blue block. This organization mirrors the physical behavior of how the predator eats the prey.

Notes
Using the me block inside Delete Agent will produce the same behavior as using the Delete block, which makes any agent following the instructions delete itself.
Related Blocks
- Delete - Deletes the agent executing the code
- Delete Everyone - Deletes all agents in the simulation