# Unit Arming Progress
Grammar — u arming progress is stage
Flags —Native
|Event
This event fires when a unit’s arming progress reaches a certain stage. Use “Triggering Player” to get the player that triggered the arm ability. Use “Triggering Unit” to get the arming unit. Use “Triggering Progress Unit Type” to get the unit type of the unit in the queue. Use “Triggering Progress Unit” to get the unit in the queue.
# Arguments
unitref
<unit> — Unitint
<preset::Unit_Progress> — Stage
Returns — void
native void TriggerAddEventUnitArmMagazineProgress(
trigger t,
unitref u,
int stage,
);
# Event parameters
- Triggering Game User — EventGameUser
- Triggering Player — EventPlayer
- Triggering Unit — EventUnit
- Triggering Progress Unit — EventUnitProgressUnit
- Triggering Progress Unit Type — libNtve_gf_TriggeringProgressUnitType
# Related
Category: Unit / Progress And Queues
- Set Unit Progress —
void
— UnitSetProgressComplete - Unit Progress (Percent) —
fixed
— UnitGetProgressComplete - Pause/Resume/Cancel Unit Progress Bar —
void
— UnitSetProgressStage - Unit Progress Bar Check —
bool
— UnitCheckProgressState - Unit Is Under Construction —
bool
— libNtve_gf_UnitIsUnderConstruction - Unit Arming Progress —
void
— TriggerAddEventUnitArmMagazineProgress - Unit Construction Progress —
void
— TriggerAddEventUnitConstructProgress - Unit Learn Progress —
void
— TriggerAddEventUnitLearnProgress - Unit Research Progress —
void
— TriggerAddEventUnitResearchProgress - Unit Revive Progress —
void
— TriggerAddEventUnitReviveProgress - Unit Specialization Progress —
void
— TriggerAddEventUnitSpecializeProgress - Unit Training Progress —
void
— TriggerAddEventUnitTrainProgress - Triggering Progress Object —
string
<gamelink> — EventUnitProgressObjectType - Triggering Progress Ability —
string
<gamelink::Abil> — libNtve_gf_TriggeringProgressAbility - Triggering Progress Effect —
string
<gamelink::Effect> — libNtve_gf_TriggeringProgressEffect - Triggering Progress Unit —
unit
— EventUnitProgressUnit - Triggering Progress Unit Type —
string
<gamelink::Unit> — libNtve_gf_TriggeringProgressUnitType - Triggering Progress Upgrade —
string
<gamelink::Upgrade> — libNtve_gf_TriggeringProgressUpgrade - Number Of Items In Training Queue Slot —
int
— UnitQueueItemCount - Queued Object In Training Queue Slot —
string
<gamelink> — UnitQueueItemGet - Queued Behavior Type In Training Queue Slot —
string
<gamelink::Behavior> — libNtve_gf_QueuedBehaviorTypeInTrainingQueueSlot - Queued Unit Type In Training Queue Slot —
string
<gamelink::Unit> — libNtve_gf_QueuedUnitTypeInTrainingQueueSlot - Queued Upgrade Type In Training Queue Slot —
string
<gamelink::Upgrade> — libNtve_gf_QueuedUpgradeTypeInTrainingQueueSlot - Training Queue Property Of Unit —
int
— UnitQueueGetProperty - Training Queue Slot Type Check —
bool
— UnitQueueItemTypeCheck - Training Queue Time —
fixed
— UnitQueueItemTime
# Examples
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:4849
void libNCMI_gt_NovaNukeTimerGhostAcademyNukeBuild_Init () {
libNCMI_gt_NovaNukeTimerGhostAcademyNukeBuild = TriggerCreate("libNCMI_gt_NovaNukeTimerGhostAcademyNukeBuild_Func");
TriggerAddEventUnitArmMagazineProgress(libNCMI_gt_NovaNukeTimerGhostAcademyNukeBuild, null, c_unitProgressStageStart);
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:4880
void libNCMI_gt_NovaNukeTimerGhostAcademyNukeCancel_Init () {
libNCMI_gt_NovaNukeTimerGhostAcademyNukeCancel = TriggerCreate("libNCMI_gt_NovaNukeTimerGhostAcademyNukeCancel_Func");
TriggerAddEventUnitArmMagazineProgress(libNCMI_gt_NovaNukeTimerGhostAcademyNukeCancel, null, c_unitProgressStageCancel);
TriggerAddEventUnitArmMagazineProgress(libNCMI_gt_NovaNukeTimerGhostAcademyNukeCancel, null, c_unitProgressStageComplete);
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:4881
libNCMI_gt_NovaNukeTimerGhostAcademyNukeCancel = TriggerCreate("libNCMI_gt_NovaNukeTimerGhostAcademyNukeCancel_Func");
TriggerAddEventUnitArmMagazineProgress(libNCMI_gt_NovaNukeTimerGhostAcademyNukeCancel, null, c_unitProgressStageCancel);
TriggerAddEventUnitArmMagazineProgress(libNCMI_gt_NovaNukeTimerGhostAcademyNukeCancel, null, c_unitProgressStageComplete);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:19885
libCOMI_gt_CM_Horner_HangerFinish = TriggerCreate("libCOMI_gt_CM_Horner_HangerFinish_Func");
TriggerEnable(libCOMI_gt_CM_Horner_HangerFinish, false);
TriggerAddEventUnitArmMagazineProgress(libCOMI_gt_CM_Horner_HangerFinish, null, c_unitProgressStageComplete);
}