# Set Selected Purchase Category

Grammar — Select purchaseCategory for to|Players
FlagsNative | Action

Selects the specified purchase category for the specified players.

# Arguments

Returns — void

native void PurchaseSetSelectedPurchaseCategory(
	playergroup inPlayerGroup,
	int inPurchaseCategoryId,
);

Category: Story / Tech Purchase Panel / Interaction

# Examples

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

    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypePurchasePanel, true);
    if ((PurchaseGetSelectedPurchaseCategory(1) == c_invalidPurchaseCategoryId)) {
        PurchaseSetSelectedPurchaseCategory(PlayerGroupAll(), libCamp_gv_tS_TechCategory_UI[(libCamp_ge_StoryTechCategory_StoryTechCategoryInfantry)]);
    }