# Set Mercenary Cost

Grammar — Set the cost of mercenaryId to cost
FlagsNative | Action

Sets the cost for the specified mercenary.

# Arguments

  • int [ preset::Mercenary ] — MercenaryId
  • int — Cost

Returns — void

native void MercenarySetCost(
	int inMercenaryId,
	int inCost,
);

Category: Story / Mercenary Panel

# Examples

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L3744
MercenarySetCost(MercenaryLastCreated(), libCamp_gf_MercCost(lv_indexMerc))