Function WaitForTown

Line
1300
Location
common.ai
Constant?
no
Type
function
Arguments
integer towns, integer townid
Returns
nothing
1300
function WaitForTown takes integer towns, integer townid returns nothing
1301
    local integer i = 0
1302
    loop
1303
        call Sleep(10)
1304
        exitwhen TownCount(townid) >= towns
1305
        set i = i + 1
1306
        exitwhen i == 12
1307
    endloop
1308
endfunction