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
setarmorCategories
Parameters
- player (1-32): id of a player
- armor (0-255): armor
Info
Set the armor of a player (as server only).
There is regular armor (0 - 200, decreases when the player is hit).
And special armor (201-206, stays until removed via script / another armor type is assigned)
Special Armor Types:
- 201 - Light Armor
- 202 - Armor
- 203 - Heavy Armor
- 204 - Medic Armor
- 205 - Super Armor
- 206 - Stealth Suit
Lua Hooks
Lua Commands
Categories
Parameters
- player (1-32): id of a player
- armor (0-255): armor
Info
Set the armor of a player (as server only).
There is regular armor (0 - 200, decreases when the player is hit).
And special armor (201-206, stays until removed via script / another armor type is assigned)
Special Armor Types:
There is regular armor (0 - 200, decreases when the player is hit).
And special armor (201-206, stays until removed via script / another armor type is assigned)
Special Armor Types:
- 201 - Light Armor
- 202 - Armor
- 203 - Heavy Armor
- 204 - Medic Armor
- 205 - Super Armor
- 206 - Stealth Suit



