Jass:SelectUnitForPlayerSingle
Aus Mappedia
| 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 |
