sm.areaTrigger.filter

Filters are used to specify what object types an area trigger is able to detect. If an area trigger is created with a filter, it will only react to objects of that type. Filters can be combined by adding them.

Kind: Constant

Environments: Game

Game

Open the full Game reference

The filters are:

  • dynamicBody – Detects bodies that are free to move around in the world.
  • staticBody – Detects bodies that are built on the ground or on the lift.
  • character – Detects characters such as players.
  • areatrigger – Detects areatriggers such as water areas.
  • harvestable – Detects harvestables such as planted objects.
  • lift – Detects lifts.
  • voxelTerrain – Detects destructible terrain.
  • all – Detects all of the object types above. (Default)
Value Description
dynamicBody 1
staticBody 2
character 4
areatrigger 8
harvestable 512
lift 1024
voxelTerrain 32768
all 34319

Returns:

Type Description
table The filter type list.