The search keyword must be a single word (no spaces).
Function SetBuildNext
- Line
- 997
- Location
- common.ai
- Constant?
- no
- Type
- function
- Arguments
- integer qty, integer unitid
- Returns
- nothing
| 997 | function SetBuildNext takes integer qty, integer unitid returns nothing |
| 998 | local integer has = GetUnitCount(unitid) |
| 999 | if has >= qty then |
| 1000 | return
|
| 1001 | endif
|
| 1002 | call SetBuildAll(BUILD_UNIT,GetUnitCountDone(unitid)+1,unitid,-1) |
| 1003 | endfunction
|