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
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.