User Tools

Site Tools


playground:k75:irpl_test_code2

====== CreateSand ====== CreateSand(<-x <-y <-sandDef)

Description

Creates sand at the specified coordinates (x, y) using the provided sand definition (`sandDef`).

Examples

10 20 1 ->sandDef ->y ->x 
CreateSand(<-x <-y <-sandDef)

See Also

CreateSandInRoundArea

CreateSandInAreaRand

CreateSandInArea

====== CreateSandInRoundArea ====== CreateSandInRoundArea(<-rect <-probability <-sandDef)

Description

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.

Examples

{0 0 10 10} ->rect 
0.5 ->probability 
1 ->sandDef
CreateSandInRoundArea(<-rect <-probability <-sandDef)

See Also

CreateSand

CreateSandInAreaRand

CreateSandInArea

====== CreateSandInAreaRand ====== CreateSandInAreaRand(<-rect <-probability <-sandDef)

Description

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.

Examples

{0 0 10 10} ->rect
0.5 ->probability
1 ->sandDef
CreateSandInAreaRand(<-rect <-probability <-sandDef)

See Also

CreateSand

CreateSandInRoundArea

CreateSandInArea

====== CreateSandInArea ====== CreateSandInArea(<-rect <-sandDef)

Description

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`.

Examples

{0 0 10 10} ->rect
1 ->sandDef
CreateSandInArea(<-rect <-sandDef)

See Also

playground/k75/irpl_test_code2.txt · Last modified: 2024/11/25 11:24 by Karsten75