Teleport To/es: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
<section begin="image"/>[[File:teleport_to.png|alt=The Teleport To Block|thumb]]<section end="image"/> | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Usage== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
<p id=tooltip>Instantly moves to the specified coordinate.</p> | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Syntax== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
Inputs in this block: | |||
#a number, the x coordinate | |||
#a number, the y coordinate | |||
#a number, the z coordinate | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Example== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
[[File:teleport_to_example.gif|alt=Teleport To example gif|thumb]] | |||
[[File:teleport_to_example.png|alt=Teleport To example code|thumb]] | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
This is a model of a quarantine. Note that movement from the unquarantined area to the quarantined area changes the trait quarantined? from 0 to 1. Doctors (pink cubes) remove immune agents (blue) from the quarantine and move them to the unquarantined area. Further, they also find sick agents roaming around the unquarantined area (green terrain) and move them to the quarantine (white terrain). | |||
Both the ‘get quarantined’ and ‘end quarantine’ functions use the teleport to block to move agents to their proper locations. | |||
The blocks shown above describe the ‘get quarantined’ that relocates unquarantined sick agents to the quarantined area that exists in the square with corners (0,0) and (50,50). | |||
</div> | |||
[[Category:Movimiento]] | [[Category:Movimiento]] | ||
[[Category:Code Block]] | [[Category:Code Block]] |
Latest revision as of 19:10, 14 August 2023
Usage
Instantly moves to the specified coordinate.
Syntax
Inputs in this block:
- a number, the x coordinate
- a number, the y coordinate
- a number, the z coordinate
Example
This is a model of a quarantine. Note that movement from the unquarantined area to the quarantined area changes the trait quarantined? from 0 to 1. Doctors (pink cubes) remove immune agents (blue) from the quarantine and move them to the unquarantined area. Further, they also find sick agents roaming around the unquarantined area (green terrain) and move them to the quarantine (white terrain). Both the ‘get quarantined’ and ‘end quarantine’ functions use the teleport to block to move agents to their proper locations. The blocks shown above describe the ‘get quarantined’ that relocates unquarantined sick agents to the quarantined area that exists in the square with corners (0,0) and (50,50).