Jass:SelectUnitAddForPlayer – Mappedia

Jass:SelectUnitAddForPlayer

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



Code

function SelectUnitAddForPlayer takes unit whichUnit, player whichPlayer returns nothing
    if (GetLocalPlayer() == whichPlayer) then
        // Use only local code (no net traffic) within this block to avoid desyncs.
        call SelectUnit(whichUnit, true)
    endif
endfunction

Parameter

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