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
shakeCategories
Parameters
- player (1-32): player who will have a shaking screen
- power (0-X): Shake power
Info
Shake a player (as server only). The maximum power/intensity is 30. However you can use higher values for a longer shake.
A power of 50 equals one second (100=2 sec, 150=3 sec, 200=4 sec, etc.)
Lua Hooks
Lua Commands
Categories
Parameters
- player (1-32): player who will have a shaking screen
- power (0-X): Shake power
Info
Shake a player (as server only). The maximum power/intensity is 30. However you can use higher values for a longer shake.
A power of 50 equals one second (100=2 sec, 150=3 sec, 200=4 sec, etc.)
A power of 50 equals one second (100=2 sec, 150=3 sec, 200=4 sec, etc.)