Commands/Lua

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

CS2D Command CS2D Console Commands

Lua Hook Lua Hooks

Category: basic (13)

Lua Hook break

Categories

Parameters

  • 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

Info

on breaking a breakable entity

Return Values

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

Lua Command Lua Commands