Nearest Within Steps/en: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 4: | Line 4: | ||
[[Category:Code Block]] | [[Category:Code Block]] | ||
<section begin=image/>[[File:Nearest within steps.png|alt=Nearest within steps|thumb]]<section end=image/> | <section begin=image/>[[File:Nearest within steps.png|alt=Nearest within steps|thumb]]<section end=image/> | ||
<section begin="name" />'''<code>nearest [▼] within [_] steps</code>'''<section end="name" /> is a [[code block]] part of the [[Detection]] drawer. | <section begin="name" /><p id="tooltip">Returns the closest agent of a selected breed in a given radius.</p> | ||
'''<code>nearest [▼] within [_] steps</code>'''<section end="name" /> is a [[code block]] part of the [[Detection]] drawer. | |||
== Usage== | == Usage== | ||
<code>nearest [▼] within [_] steps</code> is used to refer to the nearest [[agent]] of a selected breed that exists within a given [[step]] limit in [[Spaceland]]. | |||
==Syntax== | ==Syntax== |
Revision as of 14:38, 8 August 2023
Returns the closest agent of a selected breed in a given radius.
nearest [▼] within [_] steps
is a code block part of the Detection drawer.
Usage
nearest [▼] within [_] steps
is used to refer to the nearest agent of a selected breed that exists within a given step limit in Spaceland.
Syntax
Inputs in this block:
- a breed from the dropdown menu
- a number