Table of Contents

CreateSand

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

Description

Creates sand at the specified coordinates (x, y) using the provided sand definition (sandDef). This command directly interacts with the GameSpace.instance.sand object to generate the sand.

Examples

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

See Also

CreateSandInRoundArea CreateSandInAreaRand CreateSandInArea

CreateSandInRoundArea

CreateSandInRoundArea(<-bottomLeftX <-bottomLeftY <-topRightX <-topRightY <-probability <-sandDef)

Description

Creates sand within a rectangular area defined by its 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 ->topRightY ->topRightX ->bottomLeftY ->bottomLeftX
0.5 ->probability
1 ->sandDef
CreateSandInRoundArea(<-bottomLeftX <-bottomLeftY <-topRightX <-topRightY <-probability <-sandDef)

See Also

CreateSand CreateSandInAreaRand CreateSandInArea

CreateSandInAreaRand

CreateSandInAreaRand(<-bottomLeftX <-bottomLeftY <-topRightX <-topRightY <-probability <-sandDef)

Description

Creates sand within a rectangular area defined by its 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 ->topRightY ->topRightX ->bottomLeftY ->bottomLeftX
0.5 ->probability
1 ->sandDef
CreateSandInAreaRand(<-bottomLeftX <-bottomLeftY <-topRightX <-topRightY <-probability <-sandDef)

See Also

CreateSand CreateSandInRoundArea CreateSandInArea

CreateSandInArea

CreateSandInArea(<-bottomLeftX <-bottomLeftY <-topRightX <-topRightY <-sandDef)

Description

Creates sand within a rectangular area defined by its 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 ->topRightY ->topRightX ->bottomLeftY ->bottomLeftX
1 ->sandDef
CreateSandInArea(<-bottomLeftX <-bottomLeftY <-topRightX <-topRightY <-sandDef)

See Also

CreateSand CreateSandInRoundArea CreateSandInAreaRand