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
clientportCategories
Parameters
- port (0-65535): local port, 0 = auto detect
Info
This settings is recommended for experienced users only! It forces the game to use a specific UDP port in client mode.
It is recommended to use 0 (auto detection). In this case CS2D will find a free UDP port automatically.
Note: Same as localport!
Lua Hooks
Lua Commands
Categories
Parameters
- port (0-65535): local port, 0 = auto detect
Info
This settings is recommended for experienced users only! It forces the game to use a specific UDP port in client mode.
It is recommended to use 0 (auto detection). In this case CS2D will find a free UDP port automatically.
It is recommended to use 0 (auto detection). In this case CS2D will find a free UDP port automatically.
Note: Same as localport!