Reference for console commands, Lua hooks and Lua commands in CS2D.

CS2D Command CS2D Console Commands

Lua Hook Lua Hooks

Category: basic (14)

Lua Hook break



  • x: breakable x (tiles)
  • y: breakable y (tiles)
  • player: ID of player who broke the breakable or 0 if it wasn't broken by a player


When a breakable entity (env_breakable) breaks.

Note: This is only triggered when the entity actually breaks. Any damage which just reduces the health of the breakable but does not break it, will not trigger this hook.

Return Values

none - related action(s) [if there are any] performed by CS2D cannot be altered/omitted

Lua Command Lua Commands