# 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

  • unitref [ unit ] — Unit
  • int [ preset::Unit_Progress ] — Stage

Returns — void

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

# Event parameters

Category: Unit / Progress And Queues

# Examples

# campaigns/swarm.sc2campaign

MapScript.galaxy

// L5530
TriggerAddEventUnitResearchProgress(gt_EvolutionUpgradePurchased, null, c_unitProgressStageStart)
// L5530
TriggerAddEventUnitResearchProgress(gt_EvolutionUpgradePurchased, null, c_unitProgressStageStart)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L18823
TriggerAddEventUnitResearchProgress(libSwaC_gt_ZS_CampaignStatsWeaponArmorUpgrades, null, c_unitProgressStageComplete)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L15182
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Abathur_MeleeBonusUpgrade, null, c_unitProgressStageComplete)
// L18089
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_AchievementCarrierResearched, null, c_unitProgressStageComplete)
// L18837
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ChampionUpgradeResearched, null, c_unitProgressStageComplete)
// L19263
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStart, null, c_unitProgressStageStart)
// L19264
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStart, null, c_unitProgressStageResume)
// L19293
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStagePause)
// L19294
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStageCancel)
// L19295
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStageComplete)
// L26195
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Tychus_UltimateAchievement, null, c_unitProgressStageComplete)
// L26393
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Tychus_TriUnitSpeed_Upgrade, null, c_unitProgressStageComplete)

# mods/starcoop/starcoop.sc2mod

LibCOOC.galaxy

// L6424
TriggerAddEventUnitResearchProgress(libCOOC_gt_CC_SharedUpgradesRecheck, null, c_unitProgressStageComplete)

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L9357
TriggerAddEventUnitResearchProgress(libCOUI_gt_CU_TychusEquipmentUpgraded, null, c_unitProgressStageComplete)