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
Lua Hooks
Lua Commands
Category: player (12)
fow_inCategories
Parameters
- id
- x
- y
Info
Returns if the coordinate defined in pixels at x|y is currently hidden by the fog of war (1) or not (0). The visibility is calculated for player with the given ID, taking its current position and rotation into account.
Attention: This check is relatively slow as it recalculates the fog of war each time it is called. Calling it frequently may lead to performance problems.
Categories
Parameters
- id
- x
- y
Info
Returns if the coordinate defined in pixels at x|y is currently hidden by the fog of war (1) or not (0). The visibility is calculated for player with the given ID, taking its current position and rotation into account.
Attention: This check is relatively slow as it recalculates the fog of war each time it is called. Calling it frequently may lead to performance problems.