# Mercenary Panel Exited

Grammar — Player player exits the Mercenary Panel
FlagsNative | Event

This event fires when a player closes the mercenary panel.

# Arguments

  • int — Player

Returns — void

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

Category: Story / Mercenary Panel

# Examples

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

void libCamp_gt_TS_MercUIExit_Init () {
    libCamp_gt_TS_MercUIExit = TriggerCreate("libCamp_gt_TS_MercUIExit_Func");
    TriggerAddEventMercenaryPanelExit(libCamp_gt_TS_MercUIExit, c_playerAny);
}

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

void libCamp_gt_TS_DebugMercenaryPanelCloseButtonClicked_Init () {
    libCamp_gt_TS_DebugMercenaryPanelCloseButtonClicked = TriggerCreate("libCamp_gt_TS_DebugMercenaryPanelCloseButtonClicked_Func");
    TriggerAddEventMercenaryPanelExit(libCamp_gt_TS_DebugMercenaryPanelCloseButtonClicked, c_playerAny);
}