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
winCategories
Parameters
- win (0/1): run game in window (1) or full-screen (0)
Info
Change the window setting. CS2D can run in a window (1, default) or in full-screen mode (0).
Attention: This command is ignored during the initial start of the game if you are using one of the command line parameters to change the win/full-screen behavior (-win,-windowed,-full,-fullscreen). In other words: Command line parameters have a higher priority than this setting.
Lua Hooks
Lua Commands
Categories
Parameters
- win (0/1): run game in window (1) or full-screen (0)
Info
Change the window setting. CS2D can run in a window (1, default) or in full-screen mode (0).
Attention: This command is ignored during the initial start of the game if you are using one of the command line parameters to change the win/full-screen behavior (-win,-windowed,-full,-fullscreen). In other words: Command line parameters have a higher priority than this setting.