MeleeStartingUnitsForPlayer
- Parameters
-
whichRace race
whichPlayer player
loc location
doHeroes boolean
- comment
- patch
-
1.07
- Source
- Blizzard.j (suggest an edit or discuss on Github)
- return type
-
nothing
- Source code
-
function MeleeStartingUnitsForPlayer takes race whichRace, player whichPlayer, location loc, boolean doHeroes returns nothing // 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