Set Clock To/es: Difference between revisions
No edit summary |
(Updating to match new version of source page) |
||
Line 23: | Line 23: | ||
==Common Uses== | ==Common Uses== | ||
This is commonly used to reset the clock, which is helpful for each time you run a simulation. | This is commonly used to reset the clock, which is helpful for each time you run a simulation. | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Example== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
[[File:set_clock_to_example.gif|alt=Set Clock To example gif|thumb]] | |||
[[File:set_clock_to_example.png|alt=Set Clock To example code|thumb]] | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
The model above depicts flowers growing with the rainfall over time. The clock is used to determine when thunderstorms start and stop: it will rain between 50 and 100, after which the clock will be reset to 0. In all, there are 50 ticks of rain followed by 50 ticks of no rain. | |||
</div> | </div> | ||
Revision as of 12:58, 12 August 2023
set clock to [_]
is a bloque de código part of the ambiente drawer.
set clock to [_]
is a code block part of the Environment drawer.
Usage
set clock to [_]
sets the value of clock to some number. Typically, when you reset the clock, you want to start it at 0.
Sintaxis
Common Uses
This is commonly used to reset the clock, which is helpful for each time you run a simulation.
Example
The model above depicts flowers growing with the rainfall over time. The clock is used to determine when thunderstorms start and stop: it will rain between 50 and 100, after which the clock will be reset to 0. In all, there are 50 ticks of rain followed by 50 ticks of no rain.