Jass:GroupPickRandomUnit
Aus Mappedia
| Funktion: GroupPickRandomUnit | |
|---|---|
| Parameter: | group |
| Rückgabewert: | unit |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function GroupPickRandomUnit takes group whichGroup returns unit // If the user wants the group destroyed, remember that fact and clear // the flag, in case it is used again in the callback. local boolean wantDestroy = bj_wantDestroyGroup set bj_wantDestroyGroup = false set bj_groupRandomConsidered = 0 set bj_groupRandomCurrentPick = null call ForGroup(whichGroup, function GroupPickRandomUnitEnum) // If the user wants the group destroyed, do so now. if (wantDestroy) then call DestroyGroup(whichGroup) endif return bj_groupRandomCurrentPick endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| group | whichGroup |
