Jass:CreateNUnitsAtLoc
Aus Mappedia
| Funktion: CreateNUnitsAtLoc | |
|---|---|
| Parameter: | integer integer player location real |
| Rückgabewert: | group |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function CreateNUnitsAtLoc takes integer count, integer unitId, player whichPlayer, location loc, real face returns group call GroupClear(bj_lastCreatedGroup) loop set count = count - 1 exitwhen count < 0 call CreateUnitAtLocSaveLast(whichPlayer, unitId, loc, face) call GroupAddUnit(bj_lastCreatedGroup, bj_lastCreatedUnit) endloop return bj_lastCreatedGroup endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| integer | count | |
| integer | unitId | |
| player | whichPlayer | |
| location | loc | |
| real | face |
