Skip to main content

Me

Refers to the agent executing the code.

Me block

Description

The Me block is a reference to the agent executing the code. This is a code block part of the agents drawer.

Usage

Me is used to refer to the agent executing the code. This block is often used as a socket in other blocks, such as delete agent [_].

Syntax

This block has no inputs.

(in reference to itself) me

Example

This is a model of a salt precipitating out of a solution. When the 'K' agent collides with the 'Cl' agent, both agents are deleted and a new 'Salt' agent is created.

Me example code

Notes

Using the me block inside the delete agent block produces the same behavior as using a delete block.

  • My Parent - References the agent that created this agent
  • Delete Agent - Often used with me to delete the current agent