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
renderdecorationCategories
Parameters
- render (0/1): render decoration Env_Image and Env_Sprite (1) or not (0)
Info
Controls if map decoration images and sprites should be rendered (1, default) or not (0). This setting only affects Env_Image and Env_Sprite entities which have the "Is decoration"-checkbox checked. By default this setting is set to 1 so all sprites and images are rendered.
Note: It is recommended to keep this at its default value (1). Disabling rendering is only recommended for slow systems with performance problems.
Lua Hooks
Lua Commands
Categories
Parameters
- render (0/1): render decoration Env_Image and Env_Sprite (1) or not (0)
Info
Controls if map decoration images and sprites should be rendered (1, default) or not (0). This setting only affects Env_Image and Env_Sprite entities which have the "Is decoration"-checkbox checked. By default this setting is set to 1 so all sprites and images are rendered.
Note: It is recommended to keep this at its default value (1). Disabling rendering is only recommended for slow systems with performance problems.