Nearest Within Steps With =
Returns the closest agent of a selected breed in a given radius with a specific trait.
nearest [▼] within [_] steps with [▼] = [_]
is a code block part of the Detection drawer.
Usage
nearest [▼] within [_] steps with [▼] = [_]
is used to refer to the nearest agent of a selected breed AND trait that exists within a given step limit in Spaceland.
Syntax
Inputs:
- a breed from the first dropdown menu
- a number