Jass:SelectUnitForPlayerSingle – Mappedia

Jass:SelectUnitForPlayerSingle

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



Code

function SelectUnitForPlayerSingle 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 ClearSelection()
        call SelectUnit(whichUnit, true)
    endif
endfunction

Parameter

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