# Training Queue Time

GrammartimeType|Training Queue Time for unit training queue slot slot
FlagsNative | Function

Returns the training queue time for the unit in the specified training slot.

# Arguments

Returns — fixed

native fixed UnitQueueItemTime(
	unit inUnit,
	int inTimeType,
	int inItem,
);

Category: Unit / Progress And Queues

# Examples

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:18416

    UnitGroupLoopBegin(gv_protossGateways);
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((UnitQueueItemTypeCheck(UnitGroupLoopCurrent(), 1, c_unitProgressTypeTrain) == true) && (UnitQueueItemTime(UnitGroupLoopCurrent(), c_unitQueueTimeElapsed, 1) == 0.0)) {
            auto74612559_n = 5;
            for (auto74612559_i = 1; auto74612559_i <= auto74612559_n; auto74612559_i += 1) {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:18416

    UnitGroupLoopBegin(gv_protossGateways);
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((UnitQueueItemTypeCheck(UnitGroupLoopCurrent(), 1, c_unitProgressTypeTrain) == true) && (UnitQueueItemTime(UnitGroupLoopCurrent(), c_unitQueueTimeElapsed, 1) == 0.0)) {
            auto74612559_n = 5;
            for (auto74612559_i = 1; auto74612559_i <= auto74612559_n; auto74612559_i += 1) {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:1929

        UnitGroupLoopBegin(libNCMI_gv_nM_NovaNukesUnitGroup);
        for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
            if ((UnitQueueItemTime(UnitGroupLoopCurrent(), c_unitQueueTimeRemaining, 1) < lv_lowestResearchTime)) {
                lv_lowestResearchTime = UnitQueueItemTime(UnitGroupLoopCurrent(), c_unitQueueTimeRemaining, 1);
                lv_trainingNukeFound = true;

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:1930

        for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
            if ((UnitQueueItemTime(UnitGroupLoopCurrent(), c_unitQueueTimeRemaining, 1) < lv_lowestResearchTime)) {
                lv_lowestResearchTime = UnitQueueItemTime(UnitGroupLoopCurrent(), c_unitQueueTimeRemaining, 1);
                lv_trainingNukeFound = true;
            }

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

    }

    lv_researchElapsed = UnitQueueItemTime(EventUnit(), c_unitQueueTimeElapsed, 1);
    lv_researchElapsed += lv_researchTimerAdjustment;
    lv_researchTotal = UnitQueueItemTime(EventUnit(), c_unitQueueTimeTotal, 1);

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

    lv_researchElapsed = UnitQueueItemTime(EventUnit(), c_unitQueueTimeElapsed, 1);
    lv_researchElapsed += lv_researchTimerAdjustment;
    lv_researchTotal = UnitQueueItemTime(EventUnit(), c_unitQueueTimeTotal, 1);
    if ((lv_researchTotal != 0.0)) {
        UnitSetProgressComplete(EventUnit(), 1, FixedToInt(((lv_researchElapsed / lv_researchTotal) * 100)));