Restrict building of uints in a special way

killmeplease

Mk Z on Steam
Joined
Nov 22, 2007
Messages
2,795
Location
Samara
I want to set a limit on how many units of certain type can be produced during the game by each player. E.g. there can only be 3 units of type X ever built by the player at standard map. Is it possible, and how? It seems there was a lua hook on what can be built by a city or am I wrong..
thanks
 
While it's not exactly what you want there's a player limit on unitclasses. Unlike the global limit this is a limit on how many you can have at once.

You can use the CityCanTrain hook. You'll need to keep track of how many of each unit the player has trained.
 
Back
Top Bottom