GetPlayerTechMaxAllowed

Parameters
whichPlayerplayer
techidinteger
comment
note

This can be used to limit player's maximum amount of units. INT_MAX by default.

Upon reaching this limit, the player will not be able to queue this unit for training any longer and the icon will be hidden. When units die, training will be allowed again.

note

See: SetPlayerTechMaxAllowed

patch

1.00

Source
common.j (suggest an edit or discuss on Github)
return type
integer
Source code
constant native GetPlayerTechMaxAllowed takes player whichPlayer, integer techid returns integer