If not specified, defaults to DROID_ANY which returns the overall number of droids, irrespective of type, that the player can produce.
3.1 RC2
Return value
Value
Type
Notes
Warzone Version
<limit>
Number
If parameters are valid, the function returns the limit that's been set for either the specific droid, or the maximum number of droids the player can produce.
3.1 RC2
<error>
Error
An error occurred, most likely the player did not exist or there was an issue with the droidType specified.
3.1 RC2
Example
var limit = getDroidLimit(me); // how many droids can I produce in total?
var trucks = getDroidLimit(me, DROID_CONSTRUCT); // how many trucks can I have?