BuildFactory

Parameters
unitidinteger
comment
patch

1.00

Source
common.ai (raise an issue to discuss on Github or submit a PR)
return type
nothing
Source code
function BuildFactory takes integer unitid returns nothing
    if GetGold() > 1000 and GetWood() > 500 then
        call SetBuildUnit( 2, unitid )
    else
        call SetBuildUnit( 1, unitid )
    endif
endfunction