Jass:MeleeRemoveObservers
Aus Mappedia
| Funktion: MeleeRemoveObservers | |
|---|---|
| Parameter: | nothing |
| Rückgabewert: | nothing |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function MeleeRemoveObservers takes nothing returns nothing local integer playerIndex local player indexPlayer // Give all observers the game over dialog set playerIndex = 0 loop set indexPlayer = Player(playerIndex) if (IsPlayerObserver(indexPlayer)) then call RemovePlayerPreserveUnitsBJ(indexPlayer, PLAYER_GAME_RESULT_NEUTRAL, false) endif set playerIndex = playerIndex + 1 exitwhen playerIndex == bj_MAX_PLAYERS endloop endfunction
