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