
Help
Command Reference
You can enter CS2D script commands in the console, save them in cfg-files or bind them to keys. CS2D script commands are no Lua commands but they can still be executed in Lua scripts by using the Lua parse-function!
Commands
Lua Reference
Lua scripting (server-sided) allows server hosters and mappers to modify the game and to add new elements.
Lua Hooks
Lua Commands
Category: all (66)
reqcld
Categories
Basic,Player
Parameters
- id
- mode
- [parameter] (optional)
Info
reqcld is short for "request client data". This command request data from a player client (id=player id) or from all clients (id=0).
Mode specifies which data you will receive:
The requested data will be received later (delayed because it will be sent over the net connection obviously). You have to use the clientdata-hook to handle the incoming data!
Mode specifies which data you will receive:
- Mode 0: Cursor position (cursor position on screen)
- Mode 1: Map scrolling
- Mode 2: Absolute cursor position (cursor position on map)
- Mode 3: 1 if the client has the advanced light engine enabled, 0 otherwise (second value always 0)
- Mode 4: 1 if the file specified with parameter (relative to the CS2D folder) has been loaded, 0 otherwise (second value always 0)
The requested data will be received later (delayed because it will be sent over the net connection obviously). You have to use the clientdata-hook to handle the incoming data!
Note: Requested data is guaranteed to arrive (unless the client is unreachable).
Attention: This command uses reliable UDP packets. Using it too frequently might lead to lags or ping spikes!
Attention: Don't forget that the values sent by the client might be manipulated by hacks or other software. You can't trust them 100%!






