SetBuildNext

Parameters
qtyinteger
unitidinteger
comment
patch

1.07

Source
common.ai (raise an issue to discuss on Github or submit a PR)
return type
nothing
Source code
function SetBuildNext takes integer qty, integer unitid returns nothing
    local integer has = GetUnitCount(unitid)
    if has >= qty then
        return
    endif
    call SetBuildAll(BUILD_UNIT,GetUnitCountDone(unitid)+1,unitid,-1)
endfunction