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

CS2D Command CS2D Console Commands

Category: server (199)

CS2D Command mp_building_limit



  • building (text): name of a building
  • limit (0-X): limit


Set the build limit for a building. Each player can only build the specified amount of that building.
The value can also be set to 0 to disallow building that building.

Buildings (Class 1 only!):

Note: This will not affect buildings which are already built. e.g. if you already built 3 turrets, setting the limit to 0 will NOT destroy the turrets (but you won't be able to build more afterwards).

Attention: Make sure that you use the name exactly as the building is called in-game (see list above).

Attention: This does not affect upgrades. You can upgrade buildings always - even if you exceed the limit by doing that.

mp_building_limit "Wall I" 5

Lua Hook Lua Hooks

Lua Command Lua Commands