# Unit Learn Progress

Grammaru learning progress is stage
FlagsNative | Event

This event fires when a unit’s learning stage reaches a certain progress. Use “Triggering Player” to get the player that triggered construction. Use “Triggering Unit” to get the unit that is doing the learning. Use “Triggering Progress Ability” to get the ability being learned.

# Arguments

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

Returns — void

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

# Event parameters

Category: Unit / Progress And Queues

# Examples

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L16973
TriggerAddEventUnitLearnProgress(libCOMI_gt_CM_DehakaConsumeLearnLevel2, null, c_unitProgressStageComplete)
// L17016
TriggerAddEventUnitLearnProgress(libCOMI_gt_CM_DehakaConsumeLearnLevel3, null, c_unitProgressStageComplete)