Entities

Entities are used in to specify player spawn locations or to add effects, doors, items and more to a map.

Category: env (14)

ID 25 - Env_Breakable (Brkbl)

Info

Creates a breakable tile on the map at the position of the entity.

Values / Properties

The following values can be set in the entity properties menu of the map editor and can be read using the Lua command entity.

  • ints[0]=tile/frame number/index
  • ints[1]=health
  • ints[2]=material (0=wood, 1=stone, 2=metal, 3=flesh, 4=glass, 5=nothing)
  • ints[3]=explode (0/1)
  • ints[4]=explosion range
  • ints[5]=explosion power
  • ints[6]=shadow type (0=wall, 1=none, 2=obstacle)
  • strs[0]=transparency (0.0-1.0)