Jass:AllowVictoryDefeat
Aus Mappedia
| Funktion: AllowVictoryDefeat | |
|---|---|
| Parameter: | playergameresult |
| Rückgabewert: | boolean |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function AllowVictoryDefeat takes playergameresult gameResult returns boolean if (gameResult == PLAYER_GAME_RESULT_VICTORY) then return not IsNoVictoryCheat() endif if (gameResult == PLAYER_GAME_RESULT_DEFEAT) then return not IsNoDefeatCheat() endif if (gameResult == PLAYER_GAME_RESULT_NEUTRAL) then return (not IsNoVictoryCheat()) and (not IsNoDefeatCheat()) endif return true endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| playergameresult | gameResult |
