My playground sidebar
Game Basics
Features
Mapmaking
My playground sidebar
Game Basics
Features
Mapmaking
====== CreateSand ====== CreateSand(<-x <-y <-sandDef)
Creates sand at the specified coordinates (x, y) using the provided sand definition (`sandDef`).
10 20 1 ->sandDef ->y ->x CreateSand(<-x <-y <-sandDef)
====== CreateSandInRoundArea ====== CreateSandInRoundArea(<-rect <-probability <-sandDef)
Creates sand within a rectangular area defined by a vector (`rect`) containing the bottom-left (x,y) and top-right (x,y) corner coordinates. The `probability` value (between 0 and 1) determines the chance of sand being created at each cell within the area. Sand is created using the specified `sandDef`. The `true` flag indicates that the area is treated as a round area.
{0 0 10 10} ->rect 0.5 ->probability 1 ->sandDef CreateSandInRoundArea(<-rect <-probability <-sandDef)
====== CreateSandInAreaRand ====== CreateSandInAreaRand(<-rect <-probability <-sandDef)
Creates sand within a rectangular area defined by a vector (`rect`) containing the bottom-left (x,y) and top-right (x,y) corner coordinates. The `probability` value (between 0 and 1) determines the chance of sand being created at each cell within the area. The distribution of sand is randomized. Sand is created using the specified `sandDef`. The `false` flag indicates that the area is treated as a rectangular area.
{0 0 10 10} ->rect 0.5 ->probability 1 ->sandDef CreateSandInAreaRand(<-rect <-probability <-sandDef)
====== CreateSandInArea ====== CreateSandInArea(<-rect <-sandDef)
Creates sand within a rectangular area defined by a vector (`rect`) containing the bottom-left (x,y) and top-right (x,y) corner coordinates. Sand is created at every cell within the area using the specified `sandDef`.
{0 0 10 10} ->rect 1 ->sandDef CreateSandInArea(<-rect <-sandDef)