Jass:CountLivingPlayerUnitsOfTypeId – Mappedia

Jass:CountLivingPlayerUnitsOfTypeId

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



Code

function CountLivingPlayerUnitsOfTypeId takes integer unitId, player whichPlayer returns integer
    local group g
    local integer matchedCount

    set g = CreateGroup()
    set bj_livingPlayerUnitsTypeId = unitId
    call GroupEnumUnitsOfPlayer(g, whichPlayer, filterLivingPlayerUnitsOfTypeId)
    set matchedCount = CountUnitsInGroup(g)
    call DestroyGroup(g)

    return matchedCount
endfunction

Parameter

Typ Name Beschreibung
integer unitId
player whichPlayer
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Warcraft-Mapping
Werkzeuge