Jass:CustomDefeatBJ
Aus Mappedia
| Funktion: CustomDefeatBJ | |
|---|---|
| Parameter: | player string |
| Rückgabewert: | nothing |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function CustomDefeatBJ takes player whichPlayer, string message returns nothing if AllowVictoryDefeat( PLAYER_GAME_RESULT_DEFEAT ) then call RemovePlayer( whichPlayer, PLAYER_GAME_RESULT_DEFEAT ) if not bj_isSinglePlayer then call DisplayTimedTextFromPlayer(whichPlayer, 0, 0, 60, GetLocalizedString( "PLAYER_DEFEATED" ) ) endif // UI only needs to be displayed to users. if (GetPlayerController(whichPlayer) == MAP_CONTROL_USER) then call CustomDefeatDialogBJ( whichPlayer, message ) endif endif endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| player | whichPlayer | |
| string | message |
