# Set Mercenary Title Text

Grammar — Set the title text of mercenaryId to text
FlagsNative | Action

Sets the title text for the specified mercenary.

# Arguments

  • int<preset::Mercenary> — MercenaryId
  • text — Text

Returns — void

native void MercenarySetTitleText(
	int inMercenaryId,
	text inText,
);

Category: Story / Mercenary Panel

# Examples

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

            MercenaryCreate(PlayerGroupAll(), c_mercenaryStateDisabled);
            libCamp_gv_tS_MercUIMercenaries[(lv_indexMerc)] = MercenaryLastCreated();
            MercenarySetTitleText(MercenaryLastCreated(), libCamp_gf_MercName(lv_indexMerc));
            MercenarySetDescriptionText(MercenaryLastCreated(), libCamp_gf_MercDescription(lv_indexMerc));
            MercenarySetCost(MercenaryLastCreated(), libCamp_gf_MercCost(lv_indexMerc));