Scatter/en: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 6: Line 6:
{{#vardefine:Scatter|<code>scatter</code>}}<section begin=name/>'''<code>scatter</code>'''<section end=name/> is a [[code block]] part of the [[agents]] drawer.
{{#vardefine:Scatter|<code>scatter</code>}}<section begin=name/>'''<code>scatter</code>'''<section end=name/> is a [[code block]] part of the [[agents]] drawer.


== Usage ==
==Usage==
<code>scatter</code> is used to scatter an agent to a random location in [[SpaceLand]].
<code>scatter</code> is used to scatter an agent to a random location in [[SpaceLand]].


===Syntax===
==Syntax==
<code>scatter</code>
<code>scatter</code>



Revision as of 14:51, 10 August 2023

Other languages:
Scatter.png

Sets its location to a random position in SpaceLand.

scatter is a code block part of the agents drawer.

Usage

scatter is used to scatter an agent to a random location in SpaceLand.

Syntax

scatter

Nuances

An important difference between scatter and scatter everyone is that scatter everyone scatters all agents in SpaceLand to random locations. scatter only scatters the agents created by the create [_] [▼](s) or create [_] [▼](s) each do block in which the scatter block was placed.

Related Blocks

scatter everyone

Relevant Video Resources

Relevant Activities