sm.world.voxelFilter

Filters are used to specify what materials a terrain modification sphere can destroy.

Kind: Constant

Environments: Game

Game

Open the full Game reference

The filters are:

  • material0 – Allows destruction of material 0 in the voxel material set.
  • material1 – Allows destruction of material 1 in the voxel material set.
  • material2 – Allows destruction of material 2 in the voxel material set.
  • material3 – Allows destruction of material 3 in the voxel material set.
  • material4 – Allows destruction of material 4 in the voxel material set.
  • material5 – Allows destruction of material 5 in the voxel material set.
  • material6 – Allows destruction of material 6 in the voxel material set.
  • material7 – Allows destruction of material 7 in the voxel material set.
  • all – Allows destruction of all materials in the voxel material set.
Value Description
none 0
material0 1
material1 2
material2 4
material3 8
material4 16
material5 32
material6 64
material7 128
all 255

Returns:

Type Description
table The filter type list.