Delete Everyone: Difference between revisions
(Marked this version for translation) |
(duplicate file already uploaded) |
||
Line 23: | Line 23: | ||
<!--T:23--> | <!--T:23--> | ||
[[File:delete_everyone_example.gif|alt=Delete Everyone example gif|thumb]] | [[File:delete_everyone_example.gif|alt=Delete Everyone example gif|thumb]] | ||
[[File: | [[File:create_example.png|alt=Delete Everyone example code|thumb]] | ||
<!--T:24--> | <!--T:24--> |
Latest revision as of 15:27, 16 August 2023
Deletes everyone including itself. *The World cannot delete itself.
delete everyone
is a code block part of the agents drawer.
Usage
delete everyone
is used to delete all agents from Spaceland.
Syntax
(in reference to every agent) delete everyone
Example
Each time that setup is pressed, The World deletes all other agents. This ensures that each time a new set of agents is created, the population does not continue to increase. Using the delete everyone block enables the ‘setup’ button replicate the behavior of a project loaded for the first time.
Nuances
Code may be placed after this block as this block can be used to delete all agents under the world tab.