# Mercenary Panel Selection Changed

Grammar — Player player selects __mercenaryId|MercenaryId __in the Mercenary Panel
FlagsNative | Event

This event fires when a player selects the specified MercenaryId on the mercenary panel.

# Arguments

  • int — Player
  • int<preset::Mercenary> — MercenaryId

Returns — void

native void TriggerAddEventMercenaryPanelSelectionChanged(
	trigger t,
	int player,
	int inMercenaryId,
);

Category: Story / Mercenary Panel

# Examples

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

void libCamp_gt_TS_MercNewToAvailable_Init () {
    libCamp_gt_TS_MercNewToAvailable = TriggerCreate("libCamp_gt_TS_MercNewToAvailable_Func");
    TriggerAddEventMercenaryPanelSelectionChanged(libCamp_gt_TS_MercNewToAvailable, c_playerAny, c_invalidMercenaryId);
}