The search keyword must be a single word (no spaces).

Function MeleeStartingUnitsForPlayer

Line
9001
Location
blizzard.j
Constant?
no
Type
function
Arguments
race whichRace, player whichPlayer, location loc, boolean doHeroes
Returns
nothing
9001
function MeleeStartingUnitsForPlayer takes race whichRace, player whichPlayer, location loc, boolean doHeroes returns nothing
9002
    // Create initial race-specific starting units
9003
    if (whichRace == RACE_HUMAN) then
9004
        call MeleeStartingUnitsHuman(whichPlayer, loc, doHeroes, false, false)
9005
    elseif (whichRace == RACE_ORC) then
9006
        call MeleeStartingUnitsOrc(whichPlayer, loc, doHeroes, false, false)
9007
    elseif (whichRace == RACE_UNDEAD) then
9008
        call MeleeStartingUnitsUndead(whichPlayer, loc, doHeroes, false, false)
9009
    elseif (whichRace == RACE_NIGHTELF) then
9010
        call MeleeStartingUnitsNightElf(whichPlayer, loc, doHeroes, false, false)
9011
    else
9012
        // Unrecognized race - ignore the request.
9013
    endif
9014
endfunction