# 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.sc2mod

LibertyLib.galaxy

// L854
AIGoodGame(lv_player)