# Create Research Category

Grammar — Create a new research category in slot slot for players|PlayerGroup
FlagsNative | Action

Creates a new research category for the research panel. Use “Last Created Research Category” to get the research category created by this action.

# Arguments

  • playergroup — Players
  • int — Slot

Returns — int<preset::ResearchCategory>

native int ResearchCategoryCreate(
	playergroup inPlayerGroup,
	int inSlot,
);

Category: Story / Research Panel

# Examples

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

        else {
        }
        ResearchCategoryCreate(PlayerGroupAll(), lv_categoryIndex);
        libCamp_gv_tS_ResearchUICategories[lv_categoryIndex] = ResearchCategoryLastCreated();
        ResearchCategorySetNameText(ResearchCategoryLastCreated(), lv_categoryName);