MeleeStartingUnitsForPlayer

Parameters
whichRace race
whichPlayer player
loc location
doHeroes boolean
comment
patch

1.07

Source
Blizzard.j
return type
Source code
function MeleeStartingUnitsForPlayer takes race whichRace, player whichPlayer, location loc, boolean doHeroes returns 
// Create initial race-specific starting units
if (whichRace == RACE_HUMAN) then
call MeleeStartingUnitsHuman(whichPlayer, loc, doHeroes, false, false)
elseif (whichRace == RACE_ORC) then
call MeleeStartingUnitsOrc(whichPlayer, loc, doHeroes, false, false)
elseif (whichRace == RACE_UNDEAD) then
call MeleeStartingUnitsUndead(whichPlayer, loc, doHeroes, false, false)
elseif (whichRace == RACE_NIGHTELF) then
call MeleeStartingUnitsNightElf(whichPlayer, loc, doHeroes, false, false)
else
// Unrecognized race - ignore the request.
endif
endfunction