# Unit Research Progress

Grammaru research progress is stage
FlagsNative | Event

This event fires when a unit’s research progress reaches a certain point. Use “Triggering Player” to get the player that started the research. Use “Triggering Unit” to get the unit that is doing the research. Use “Triggering Progress Upgrade” to get the upgrade being researched.

# Arguments

Returns — void

native void TriggerAddEventUnitResearchProgress(
	trigger t,
	unitref u,
	int stage,
);

# Event parameters

Category: Unit / Progress And Queues

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:5530

void gt_EvolutionUpgradePurchased_Init () {
    gt_EvolutionUpgradePurchased = TriggerCreate("gt_EvolutionUpgradePurchased_Func");
    TriggerAddEventUnitResearchProgress(gt_EvolutionUpgradePurchased, null, c_unitProgressStageStart);
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2mapMapScript.galaxy:5530

void gt_EvolutionUpgradePurchased_Init () {
    gt_EvolutionUpgradePurchased = TriggerCreate("gt_EvolutionUpgradePurchased_Func");
    TriggerAddEventUnitResearchProgress(gt_EvolutionUpgradePurchased, null, c_unitProgressStageStart);
}

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:18823

    libSwaC_gt_ZS_CampaignStatsWeaponArmorUpgrades = TriggerCreate("libSwaC_gt_ZS_CampaignStatsWeaponArmorUpgrades_Func");
    TriggerEnable(libSwaC_gt_ZS_CampaignStatsWeaponArmorUpgrades, false);
    TriggerAddEventUnitResearchProgress(libSwaC_gt_ZS_CampaignStatsWeaponArmorUpgrades, null, c_unitProgressStageComplete);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:15185

    libCOMI_gt_CM_Abathur_MeleeBonusUpgrade = TriggerCreate("libCOMI_gt_CM_Abathur_MeleeBonusUpgrade_Func");
    TriggerEnable(libCOMI_gt_CM_Abathur_MeleeBonusUpgrade, false);
    TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Abathur_MeleeBonusUpgrade, null, c_unitProgressStageComplete);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:18092

    libCOMI_gt_CM_Fenix_AchievementCarrierResearched = TriggerCreate("libCOMI_gt_CM_Fenix_AchievementCarrierResearched_Func");
    TriggerEnable(libCOMI_gt_CM_Fenix_AchievementCarrierResearched, false);
    TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_AchievementCarrierResearched, null, c_unitProgressStageComplete);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:18840

    libCOMI_gt_CM_Fenix_ChampionUpgradeResearched = TriggerCreate("libCOMI_gt_CM_Fenix_ChampionUpgradeResearched_Func");
    TriggerEnable(libCOMI_gt_CM_Fenix_ChampionUpgradeResearched, false);
    TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ChampionUpgradeResearched, null, c_unitProgressStageComplete);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:19266

    libCOMI_gt_CM_Fenix_ConclaiveTrainStart = TriggerCreate("libCOMI_gt_CM_Fenix_ConclaiveTrainStart_Func");
    TriggerEnable(libCOMI_gt_CM_Fenix_ConclaiveTrainStart, false);
    TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStart, null, c_unitProgressStageStart);
    TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStart, null, c_unitProgressStageResume);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:19267

    TriggerEnable(libCOMI_gt_CM_Fenix_ConclaiveTrainStart, false);
    TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStart, null, c_unitProgressStageStart);
    TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStart, null, c_unitProgressStageResume);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:19296

    libCOMI_gt_CM_Fenix_ConclaiveTrainStop = TriggerCreate("libCOMI_gt_CM_Fenix_ConclaiveTrainStop_Func");
    TriggerEnable(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, false);
    TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStagePause);
    TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStageCancel);
    TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStageComplete);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:19297

    TriggerEnable(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, false);
    TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStagePause);
    TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStageCancel);
    TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStageComplete);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:19298

    TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStagePause);
    TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStageCancel);
    TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStageComplete);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:26203

    libCOMI_gt_CM_Tychus_UltimateAchievement = TriggerCreate("libCOMI_gt_CM_Tychus_UltimateAchievement_Func");
    TriggerEnable(libCOMI_gt_CM_Tychus_UltimateAchievement, false);
    TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Tychus_UltimateAchievement, null, c_unitProgressStageComplete);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:26401

    libCOMI_gt_CM_Tychus_TriUnitSpeed_Upgrade = TriggerCreate("libCOMI_gt_CM_Tychus_TriUnitSpeed_Upgrade_Func");
    TriggerEnable(libCOMI_gt_CM_Tychus_TriUnitSpeed_Upgrade, false);
    TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Tychus_TriUnitSpeed_Upgrade, null, c_unitProgressStageComplete);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:6424

void libCOOC_gt_CC_SharedUpgradesRecheck_Init () {
    libCOOC_gt_CC_SharedUpgradesRecheck = TriggerCreate("libCOOC_gt_CC_SharedUpgradesRecheck_Func");
    TriggerAddEventUnitResearchProgress(libCOOC_gt_CC_SharedUpgradesRecheck, null, c_unitProgressStageComplete);
    TriggerAddEventPlayerEffectUsed(libCOOC_gt_CC_SharedUpgradesRecheck, c_playerAny, "RefreshSharedUpgrades");
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:9357

    libCOUI_gt_CU_TychusEquipmentUpgraded = TriggerCreate("libCOUI_gt_CU_TychusEquipmentUpgraded_Func");
    TriggerEnable(libCOUI_gt_CU_TychusEquipmentUpgraded, false);
    TriggerAddEventUnitResearchProgress(libCOUI_gt_CU_TychusEquipmentUpgraded, null, c_unitProgressStageComplete);
}