Commands/Lua
Reference for console commands, Lua hooks and Lua commands in CS2D.
- Console Commands are entered in console, executed with key-binds, cfg-files or with Lua parse
- Lua Hooks execute Lua when events occur - some have a return value which can change the game behavior
- Lua Commands are used to retrieve game data or to perform actions in Lua scripts
CS2D Console Commands
Lua Hooks
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
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