# 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

Returns — void

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

# Event parameters

Category: Unit / Progress And Queues

# Examples

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

    libCOMI_gt_CM_DehakaConsumeLearnLevel2 = TriggerCreate("libCOMI_gt_CM_DehakaConsumeLearnLevel2_Func");
    TriggerEnable(libCOMI_gt_CM_DehakaConsumeLearnLevel2, false);
    TriggerAddEventUnitLearnProgress(libCOMI_gt_CM_DehakaConsumeLearnLevel2, null, c_unitProgressStageComplete);
}

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

    libCOMI_gt_CM_DehakaConsumeLearnLevel3 = TriggerCreate("libCOMI_gt_CM_DehakaConsumeLearnLevel3_Func");
    TriggerEnable(libCOMI_gt_CM_DehakaConsumeLearnLevel3, false);
    TriggerAddEventUnitLearnProgress(libCOMI_gt_CM_DehakaConsumeLearnLevel3, null, c_unitProgressStageComplete);
}