# Abort Mission
Grammar — Player player clicks the abort mission button
Flags —Native
|Event
This event fires when a player clicks the abort mission button.
# Arguments
int
— Player
Returns — void
native void TriggerAddEventAbortMission(
trigger t,
int player,
);
# Related
Category: UI / Game Menu
- Abort Mission —
void
— TriggerAddEventAbortMission - Game Menu Item Selected —
void
— TriggerAddEventGameMenuItemSelected - Game Menu Item Selected —
int
<preset::GameMenuDialogItem> — EventGameMenuItemSelected - Set Game Menu Dialog Item Text —
void
— UISetGameMenuItemText - Set Game Menu Dialog Item Shortcut —
void
— UISetGameMenuItemShortcut - Show/Hide Game Menu Dialog Item —
void
— UISetGameMenuItemVisible - Show Custom Menu —
void
— UIShowCustomMenu - Show Standard Menu —
void
— UIShowStandardMenu - Set Custom Menu Dialog Item Text —
void
— UISetCustomMenuItemText - Set Custom Menu Dialog Item Shortcut —
void
— UISetCustomMenuItemShortcut - Show/Hide Custom Menu Dialog Item —
void
— UISetCustomMenuItemVisible - Hide All Custom Menu Dialog Items —
void
— UIClearCustomMenuItemList
# Examples
campaigns/liberty.sc2campaign — base.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.sc2map — MapScript.galaxy:4510
void gt_AbortMission_Init () {
gt_AbortMission = TriggerCreate("gt_AbortMission_Func");
TriggerAddEventAbortMission(gt_AbortMission, c_playerAny);
}
campaigns/libertystory.sc2campaign — base.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.sc2campaign — base.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.sc2map — MapScript.galaxy:4336
void gt_PlayerAbortsMission_Init () {
gt_PlayerAbortsMission = TriggerCreate("gt_PlayerAbortsMission_Func");
TriggerAddEventAbortMission(gt_PlayerAbortsMission, c_playerAny);
}
campaigns/swarmstory.sc2campaign — base.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.sc2campaign — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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);
}