Jass:GetUnitsOfTypeIdAll – Mappedia

Jass:GetUnitsOfTypeIdAll

Aus Mappedia
Wechseln zu: Navigation, Suche
Funktion: GetUnitsOfTypeIdAll
Parameter: integer
Rückgabewert: group
Autor: Blizzard
Quelle: Blizzard.j
Synchron: Unbekannt



Code

function GetUnitsOfTypeIdAll takes integer unitid returns group
    local group   result = CreateGroup()
    local group   g      = CreateGroup()
    local integer index

    set index = 0
    loop
        set bj_groupEnumTypeId = unitid
        call GroupClear(g)
        call GroupEnumUnitsOfPlayer(g, Player(index), filterGetUnitsOfTypeIdAll)
        call GroupAddGroup(g, result)

        set index = index + 1
        exitwhen index == bj_MAX_PLAYER_SLOTS
    endloop
    call DestroyGroup(g)

    return result
endfunction

Parameter

Typ Name Beschreibung
integer unitid
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Warcraft-Mapping
Werkzeuge