Jass:GroupAddGroup
Aus Mappedia
| Funktion: GroupAddGroup | |
|---|---|
| Parameter: | group group |
| Rückgabewert: | nothing |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Fügt alle Einheiten der Gruppe destGroup der Einheitengruppe sourceGroup hinzu.
Code
function GroupAddGroup takes group sourceGroup, group destGroup returns nothing // 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_groupAddGroupDest = destGroup call ForGroup(sourceGroup, function GroupAddGroupEnum) // If the user wants the group destroyed, do so now. if (wantDestroy) then call DestroyGroup(sourceGroup) endif endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| group | sourceGroup | Gruppe, zu der eine Gruppe hinzugefügt werden soll |
| group | destGroup | Gruppe, die der anderen Gruppe hinzugefügt werden soll |
