# Player Leaves Game

Grammar — Player p leaves the game with result|Leave Game Option
FlagsNative | Event

This event fires when a player leaves the game with the specified victory type. Use “Triggering Player” to get the player.

# Arguments

Returns — void

native void TriggerAddEventPlayerLeft(
	trigger inTrigger,
	int player,
	int inResult,
);

# Event parameters

Category: Player / Player Settings

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L5225
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p1_USER, c_gameResultVictory)
// L5272
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p1_USER, c_gameResultDefeat)
// L4430
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_pLAYER_01_USER, c_gameResultVictory)
// L4458
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_pLAYER_01_USER, c_gameResultDefeat)
// L5441
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_pLAYER01_USER, c_gameResultVictory)
// L5469
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_pLAYER01_USER, c_gameResultDefeat)
// L3667
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p01_USER, c_gameResultVictory)
// L3695
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p01_USER, c_gameResultDefeat)
// L5194
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_pLAYER_01_USER, c_gameResultVictory)
// L5222
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_pLAYER_01_USER, c_gameResultDefeat)
// L4566
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p01_USER, c_gameResultVictory)
// L4719
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p01_USER, c_gameResultDefeat)
// L4624
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p01_USER, c_gameResultVictory)
// L4652
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p01_USER, c_gameResultDefeat)
// L4717
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p01_USER, c_gameResultVictory)
// L4745
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p01_USER, c_gameResultDefeat)
// L10368
TriggerAddEventPlayerLeft(gt_VictoryCheat, c_playerAny, c_gameResultVictory)
// L10396
TriggerAddEventPlayerLeft(gt_DefeatCheat, c_playerAny, c_gameResultDefeat)
// L4298
TriggerAddEventPlayerLeft(gt_VictoryCheat, c_playerAny, c_gameResultVictory)
// L4326
TriggerAddEventPlayerLeft(gt_DefeatCheat, c_playerAny, c_gameResultDefeat)
// L4371
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_pLAYER_01_USER, c_gameResultVictory)
// L4399
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_pLAYER_01_USER, c_gameResultDefeat)
// L4383
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_pLAYER01_USER, c_gameResultVictory)
// L4411
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_pLAYER01_USER, c_gameResultDefeat)
// L4470
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p01_USER, c_gameResultVictory)
// L4498
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p01_USER, c_gameResultDefeat)
// L3689
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p1_USER, c_gameResultVictory)
// L3717
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p1_USER, c_gameResultDefeat)
// L4720
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p1_USER, c_gameResultVictory)
// L4748
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p1_USER, c_gameResultDefeat)
// L5143
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_pLAYER01_USER, c_gameResultVictory)
// L5171
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_pLAYER01_USER, c_gameResultDefeat)
// L4069
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p1_USER, c_gameResultVictory)
// L4097
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p1_USER, c_gameResultDefeat)
// L4593
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p1_USER, c_gameResultVictory)
// L4621
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p1_USER, c_gameResultDefeat)
// L5752
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p01_USER, c_gameResultVictory)
// L5780
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p01_USER, c_gameResultDefeat)
// L2962
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_pLAYER01_USER, c_gameResultVictory)
// L2990
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_pLAYER01_USER, c_gameResultDefeat)
// L3516
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_pLAYER_01_USER, c_gameResultVictory)
// L3544
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_pLAYER_01_USER, c_gameResultDefeat)
// L4519
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p01_USER, c_gameResultVictory)
// L4547
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p01_USER, c_gameResultDefeat)
// L9170
TriggerAddEventPlayerLeft(gt_VictoryCheat, c_playerAny, c_gameResultVictory)
// L9198
TriggerAddEventPlayerLeft(gt_DefeatCheat, c_playerAny, c_gameResultDefeat)
// L5079
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_pLAYER_P01_USER, c_gameResultVictory)
// L5107
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_pLAYER_P01_USER, c_gameResultDefeat)
// L4594
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_pLAYER_USER, c_gameResultVictory)
// L4622
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_pLAYER_USER, c_gameResultDefeat)
// L8022
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p1_USER, c_gameResultVictory)
// L8050
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p1_USER, c_gameResultDefeat)
// L5495
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p1_USER, c_gameResultVictory)
// L5523
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p1_USER, c_gameResultDefeat)
// L3754
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p01_USER, c_gameResultVictory)
// L3782
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p01_USER, c_gameResultDefeat)
// L5167
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p01_PLAYER, c_gameResultVictory)
// L5195
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p01_PLAYER, c_gameResultDefeat)
// L5225
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p1_USER, c_gameResultVictory)
// L5272
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p1_USER, c_gameResultDefeat)
// L4430
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_pLAYER_01_USER, c_gameResultVictory)
// L4458
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_pLAYER_01_USER, c_gameResultDefeat)
// L5441
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_pLAYER01_USER, c_gameResultVictory)
// L5469
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_pLAYER01_USER, c_gameResultDefeat)
// L3667
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p01_USER, c_gameResultVictory)
// L3695
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p01_USER, c_gameResultDefeat)
// L5194
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_pLAYER_01_USER, c_gameResultVictory)
// L5222
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_pLAYER_01_USER, c_gameResultDefeat)
// L4566
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p01_USER, c_gameResultVictory)
// L4719
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p01_USER, c_gameResultDefeat)
// L4624
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p01_USER, c_gameResultVictory)
// L4652
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p01_USER, c_gameResultDefeat)
// L4717
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p01_USER, c_gameResultVictory)
// L4745
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p01_USER, c_gameResultDefeat)
// L10368
TriggerAddEventPlayerLeft(gt_VictoryCheat, c_playerAny, c_gameResultVictory)
// L10396
TriggerAddEventPlayerLeft(gt_DefeatCheat, c_playerAny, c_gameResultDefeat)
// L4298
TriggerAddEventPlayerLeft(gt_VictoryCheat, c_playerAny, c_gameResultVictory)
// L4326
TriggerAddEventPlayerLeft(gt_DefeatCheat, c_playerAny, c_gameResultDefeat)
// L4371
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_pLAYER_01_USER, c_gameResultVictory)
// L4399
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_pLAYER_01_USER, c_gameResultDefeat)
// L4383
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_pLAYER01_USER, c_gameResultVictory)
// L4411
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_pLAYER01_USER, c_gameResultDefeat)
// L4470
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p01_USER, c_gameResultVictory)
// L4498
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p01_USER, c_gameResultDefeat)
// L3689
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p1_USER, c_gameResultVictory)
// L3717
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p1_USER, c_gameResultDefeat)
// L4720
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p1_USER, c_gameResultVictory)
// L4748
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p1_USER, c_gameResultDefeat)
// L5143
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_pLAYER01_USER, c_gameResultVictory)
// L5171
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_pLAYER01_USER, c_gameResultDefeat)
// L4069
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p1_USER, c_gameResultVictory)
// L4097
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p1_USER, c_gameResultDefeat)
// L4593
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p1_USER, c_gameResultVictory)
// L4621
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p1_USER, c_gameResultDefeat)
// L5752
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_p01_USER, c_gameResultVictory)
// L5780
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_p01_USER, c_gameResultDefeat)
// L2962
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_pLAYER01_USER, c_gameResultVictory)
// L2990
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_pLAYER01_USER, c_gameResultDefeat)
// L3516
TriggerAddEventPlayerLeft(gt_VictoryCheat, gv_pLAYER_01_USER, c_gameResultVictory)
// L3544
TriggerAddEventPlayerLeft(gt_DefeatCheat, gv_pLAYER_01_USER, c_gameResultDefeat)