Dispersar Todos

From StarLogo Nova Wiki
This page is a translated version of the page Scatter Everyone and the translation is 64% complete.
Other languages:
DispersarTodos.png

dispersar todos es un bloque de código parte de agentes cajón.

scatter everyone is a code block part of the agents drawer.

Uso

dispersar todos se utiliza para dispersar a todos los agentes en SpaceLand a ubicaciones aleatorias.

Note: if this block is used in an breed tab where more than one agent of that breed exists, each individual agent of this breed will scatter everyone once. For example, if there are five agents of the breed, everyone will be scattered 5 times as each individual agent runs the code.

Sintaxis

(in reference to every agent)Eliminar todos

Example

Scatter Everyone example gif
Scatter Everyone example code

The scatter everyone block scatters all agents in spaceland by assigning each one random x and y coordinates. If this block is called by The World, all agents are scattered once.

Para tener en cuenta

Una diferencia importante entre dispersar todos y dispersar es eso dispersar dispersa sólo los agentes adjuntos a la dispersar bloquear. Dispersar todos dispersa a todos los agentes en SpaceLand.

Bloques relacionados

dispersar

Recursos en video relevantes

Actividades relevantes