What it does
PaintTerrain takes id (a string), x (a float), z (a float), layer (an integer), radius (a float) and strength (a float), and answers an integer.
Syntax
PaintTerrain(id string, x float, z float, layer integer, radius float, strength float) → integerParameters
| Name | Type |
|---|---|
| id | string |
| x | float |
| z | float |
| layer | integer |
| radius | float |
| strength | float |
Every form returns
integer
Example · generated
DO Print(PaintTerrain("value", 100.0, 100.0, 1, 1.0, 0.5)) Sync()LOOPPaintTerrain is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.