Reference for console commands, Lua hooks and Lua commands in CS2D.

CS2D Command CS2D Console Commands

Lua Hook Lua Hooks

Lua Command Lua Commands

Category: all (86)

Lua Command fow_in



  • id
  • x
  • y


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.