SetBuildUnitEx
- Parameters
easy integermed integerhard integerunitid 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 SetBuildUnitEx takes integer easy, integer med, integer hard, integer unitid returns nothing if difficulty == EASY then call SetBuildAll(BUILD_UNIT,easy,unitid,-1) elseif difficulty == NORMAL then call SetBuildAll(BUILD_UNIT,med,unitid,-1) else call SetBuildAll(BUILD_UNIT,hard,unitid,-1) endif endfunction