# Accept Surrender

Grammar — Accept the surrender of player player
FlagsNative | Action

If the computer already wants to surrender then it will quit the game. If it does not then this does nothing.

# Arguments

  • int — Player

Returns — void

native void AIGoodGame(int player);

Category: AI Advanced / Utility / Actions

# Examples

mods/liberty.sc2modbase.sc2data/TriggerLibs/LibertyLib.galaxy:854

            UIDisplayMessage(PlayerGroupAll(), c_messageAreaChat, TextExpressionAssemble("Param/Expression/lib_Lbty_C971EED3"));
            libLbty_gf_MeleeSurrender_UpdateDialogs();
            AIGoodGame(lv_player);
        }
        else {