SetBuildAll
- Parameters
t integerqty integerunitid integertown integer- comment
- patch
1.00
- Source
- common.ai (raise an issue to discuss on Github or submit a PR)
- return type
nothing- Source code
function SetBuildAll takes integer t, integer qty, integer unitid, integer town returns nothing if qty > 0 then set build_qty[build_length] = qty set build_type[build_length] = t set build_item[build_length] = unitid set build_town[build_length] = town set build_length = build_length + 1 endif endfunction