# Mercenary Panel Purchase

Grammar — Player player clicks the purchase button in the Mercenary Panel
FlagsNative | Event

This event fires when a player clicks the purchase button on the mercenary panel.

# Arguments

  • int — Player

Returns — void

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

Category: Story / Mercenary Panel

# Examples

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

void libCamp_gt_TS_MercUIPurchase_Init () {
    libCamp_gt_TS_MercUIPurchase = TriggerCreate("libCamp_gt_TS_MercUIPurchase_Func");
    TriggerAddEventMercenaryPanelPurchase(libCamp_gt_TS_MercUIPurchase, c_playerAny);
}