# Abort Mission

Grammar — Player player clicks the abort mission button
FlagsNative | Event

This event fires when a player clicks the abort mission button.

# Arguments

  • int — Player

Returns — void

native void TriggerAddEventAbortMission(
	trigger t,
	int player,
);

Category: UI / Game Menu

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:4510

void gt_AbortMission_Init () {
    gt_AbortMission = TriggerCreate("gt_AbortMission_Func");
    TriggerAddEventAbortMission(gt_AbortMission, c_playerAny);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2mapMapScript.galaxy:4510

void gt_AbortMission_Init () {
    gt_AbortMission = TriggerCreate("gt_AbortMission_Func");
    TriggerAddEventAbortMission(gt_AbortMission, c_playerAny);
}

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:11681

void libCamp_gt_TS_AbortMission_Init () {
    libCamp_gt_TS_AbortMission = TriggerCreate("libCamp_gt_TS_AbortMission_Func");
    TriggerAddEventAbortMission(libCamp_gt_TS_AbortMission, c_playerAny);
}

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:4336

void gt_PlayerAbortsMission_Init () {
    gt_PlayerAbortsMission = TriggerCreate("gt_PlayerAbortsMission_Func");
    TriggerAddEventAbortMission(gt_PlayerAbortsMission, c_playerAny);
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2mapMapScript.galaxy:4336

void gt_PlayerAbortsMission_Init () {
    gt_PlayerAbortsMission = TriggerCreate("gt_PlayerAbortsMission_Func");
    TriggerAddEventAbortMission(gt_PlayerAbortsMission, c_playerAny);
}

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:16282

void libSwaC_gt_ZS_AbortMission_Init () {
    libSwaC_gt_ZS_AbortMission = TriggerCreate("libSwaC_gt_ZS_AbortMission_Func");
    TriggerAddEventAbortMission(libSwaC_gt_ZS_AbortMission, c_playerAny);
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:6849

void libVCMI_gt_PM_AbortMission_Init () {
    libVCMI_gt_PM_AbortMission = TriggerCreate("libVCMI_gt_PM_AbortMission_Func");
    TriggerAddEventAbortMission(libVCMI_gt_PM_AbortMission, c_playerAny);
}

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:5926

void libNCMI_gt_NM_AbortMission_Init () {
    libNCMI_gt_NM_AbortMission = TriggerCreate("libNCMI_gt_NM_AbortMission_Func");
    TriggerAddEventAbortMission(libNCMI_gt_NM_AbortMission, c_playerAny);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:29775

void libCOMI_gt_CM_AbortMission_Init () {
    libCOMI_gt_CM_AbortMission = TriggerCreate("libCOMI_gt_CM_AbortMission_Func");
    TriggerAddEventAbortMission(libCOMI_gt_CM_AbortMission, c_playerAny);
    TriggerAddEventGameMenuItemSelected(libCOMI_gt_CM_AbortMission, c_playerAny, c_gameMenuDialogQuitButton);
}

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:7829

void libA3DDD02B_gt_PP_AbortMission_Init () {
    libA3DDD02B_gt_PP_AbortMission = TriggerCreate("libA3DDD02B_gt_PP_AbortMission_Func");
    TriggerAddEventAbortMission(libA3DDD02B_gt_PP_AbortMission, c_playerAny);
}