Terrain Color: Difference between revisions
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
===Syntax=== | ===Syntax=== | ||
<code>terrain color</code> | <code>[Textbox Insert] terrain color</code> | ||
==Common Uses== | ==Common Uses== |
Revision as of 10:25, 30 November 2022
terrain color
is a code block part of the Environment drawer.
Usage
terrain color
refers to the color of the terrain that the agent is currently on.
Syntax
[Textbox Insert] terrain color
Common Uses
This is commonly used as part of a conditional statement: for example, if an agent's color matches the color of the terrain, then the agent should perform a certain action.