Commands/Lua
Reference for console commands, Lua hooks and Lua commands in CS2D.
- CS2D Console Commands can be entered in the console, executed with key-binds, configuration (cfg) files or in Lua with parse
- Lua Hooks are used to execute Lua scripts when certain things happen - some have a return value which can change the game behavior
- Lua Commands are used to retrieve game data and to modify/extend the game
CS2D Console Commands
Category: server (198)
sv_fowCategories
Parameters
- fow (0-3): Fog of war mode
Info
Set the fog of war mode. Fog of war makes the game more realistic by hiding stuff which is out of the players view angle and behind walls.
There are several modes:
- 0 - off, everything is visible
- 1 - hide characters only (npcs, hostages and players in fog of war will be hidden)
- 2 - hide characters and effects (hide characters and also all particle effects in fog of war)
- 3 - hide everything (everything will be hidden, including items and flying projectiles. only the map itself and buildings will be visible)
Note: Smoke grenade smoke will always be visible in fog of war because it would otherwise hide itself, leading to strange effects.
Note: Buildings will also always be visible in fog of war.
Lua Hooks
Lua Commands
Categories
Parameters
- fow (0-3): Fog of war mode
Info
Set the fog of war mode. Fog of war makes the game more realistic by hiding stuff which is out of the players view angle and behind walls.
There are several modes:
There are several modes:
- 0 - off, everything is visible
- 1 - hide characters only (npcs, hostages and players in fog of war will be hidden)
- 2 - hide characters and effects (hide characters and also all particle effects in fog of war)
- 3 - hide everything (everything will be hidden, including items and flying projectiles. only the map itself and buildings will be visible)
Note: Smoke grenade smoke will always be visible in fog of war because it would otherwise hide itself, leading to strange effects.
Note: Buildings will also always be visible in fog of war.



