Nearest Within Steps With =: Difference between revisions
(Marked this version for translation) |
mNo edit summary |
||
Line 5: | Line 5: | ||
[[Category:Detection]] | [[Category:Detection]] | ||
[[Category:Code Block]] | [[Category:Code Block]] | ||
<section begin=image/>[[File:Nearest within steps with =.png|alt=Nearest within steps with =|thumb]]<section end=image | <section begin=image/>[[File:Nearest within steps with =.png|alt=Nearest within steps with =|thumb]]<section end=image/><p id="tooltip">Returns the closest agent of a selected breed in a given radius with a specific trait.</p> | ||
< | <section begin="name" />'''<code>nearest [▼] within [_] steps with [▼] = [_]</code>'''<section end="name" /> is a [[code block]] part of the [[Detection]] drawer. | ||
'''<code>nearest [▼] within [_] steps with [▼] = [_]</code>'''<section end="name" /> is a [[code block]] part of the [[Detection]] drawer. | |||
<!--T:2--> | <!--T:2--> |
Revision as of 18:10, 8 August 2023
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