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
render3dCategories
Parameters
- render3d (0/1): render game in 3D (1) or 2D (0)
Info
Setting to enable/disable 3D rendering. 3D rendering makes tiles 3D (cubes instead of squares) and gives sprites a height level.
Note: The 3D rendering mode has been introduced with CS2D 1.0.0.3. All maps can be rendered in 3D but some might look weird. This depends on how they are designed. Especially older maps which have not been designed with the 3D mode in mind might not look right in 3D mode.
Note: 3D rendering can lead to disadvantages in gameplay because some players/items - which are visible in 2D - might be covered by 3D tiles depending on your relative position to them.
Lua Hooks
Lua Commands
Categories
Parameters
- render3d (0/1): render game in 3D (1) or 2D (0)
Info
Setting to enable/disable 3D rendering. 3D rendering makes tiles 3D (cubes instead of squares) and gives sprites a height level.
Note: The 3D rendering mode has been introduced with CS2D 1.0.0.3. All maps can be rendered in 3D but some might look weird. This depends on how they are designed. Especially older maps which have not been designed with the 3D mode in mind might not look right in 3D mode.
Note: 3D rendering can lead to disadvantages in gameplay because some players/items - which are visible in 2D - might be covered by 3D tiles depending on your relative position to them.