# Game Set Quit On Quit Button

Grammar — Sets the behavior of the game quitting when the player presses the quit button to enable
FlagsNative | Action | Restricted

Used to turn on and off the behavior of the game automatically quitting when the quit button is pressed. Only usable by official blizzard maps.

# Arguments

  • bool — Enable

Returns — void

native void GameSetQuitOnQuitButton(bool enable);

Category: Game / Game Settings

# Examples

# campaigns/swarmstoryutil.sc2mod

Lib281DEC45.galaxy

// L236
GameSetQuitOnQuitButton(false)

# campaigns/voidstory.sc2campaign

VoidCampaignStoryLib.galaxy

// L610
GameSetQuitOnQuitButton(false)

# mods/missionpacks/novacampaign.sc2mod

LibNCST.galaxy

// L542
GameSetQuitOnQuitButton(false)