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
mp_building_priceCategories
Parameters
- building (text): name of a building
- price (0-16000): price in $
Info
Set the price for a building.
Buildings (Class 1 only!):
Attention: Make sure that you use the name exactly as the building is called in-game (see list above).
Examples:
mp_building_price "Wall II" 50
Lua Hooks
Lua Commands
Categories
Parameters
- building (text): name of a building
- price (0-16000): price in $
Info
Set the price for a building.
Buildings (Class 1 only!):
Examples:
mp_building_price "Wall II" 50
Buildings (Class 1 only!):
Attention: Make sure that you use the name exactly as the building is called in-game (see list above).
Examples:
mp_building_price "Wall II" 50