# Queued Unit Type In Training Queue Slot

Grammar — Unit type of unit training queue slot slot item item
FlagsFunction

Returns the unit type of a unit in a specific training slot.

# Arguments

  • unit — Unit
  • int — Slot
  • int — Item

Returns — string<gamelink::Unit>

string libNtve_gf_QueuedUnitTypeInTrainingQueueSlot(
	unit lp_unit,
	int lp_slot,
	int lp_item,
);

Category: Unit / Progress And Queues

# Examples

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

    UnitGroupLoopBegin(UnitGroup("Egg", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((libNtve_gf_QueuedUnitTypeInTrainingQueueSlot(UnitGroupLoopCurrent(), 1, 1) == "Overlord")) {
            lv_validBuildOrder = true;
        }

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

    UnitGroupLoopBegin(UnitGroup("Egg", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((libNtve_gf_QueuedUnitTypeInTrainingQueueSlot(UnitGroupLoopCurrent(), 1, 1) == "Overlord")) {
            lv_morphInProgress = true;
        }

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

    UnitGroupLoopBegin(UnitGroup("Egg", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((libNtve_gf_QueuedUnitTypeInTrainingQueueSlot(UnitGroupLoopCurrent(), 1, 1) == "Drone")) {
            lv_morphedCount += 1;
        }

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

    UnitGroupLoopBegin(UnitGroup("Egg", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((libNtve_gf_QueuedUnitTypeInTrainingQueueSlot(UnitGroupLoopCurrent(), 1, 1) == "Drone")) {
            lv_morphedCount += 1;
        }

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

    UnitGroupLoopBegin(UnitGroup("Egg", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((libNtve_gf_QueuedUnitTypeInTrainingQueueSlot(UnitGroupLoopCurrent(), 1, 1) == "Zergling")) {
            lv_morphedCount += 2;
        }

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

    UnitGroupLoopBegin(UnitGroup("Egg", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((libNtve_gf_QueuedUnitTypeInTrainingQueueSlot(UnitGroupLoopCurrent(), 1, 1) == "Roach")) {
            lv_morphedCount += 1;
        }

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

    UnitGroupLoopBegin(UnitGroup("Egg", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((libNtve_gf_QueuedUnitTypeInTrainingQueueSlot(UnitGroupLoopCurrent(), 1, 1) == "Overlord")) {
            lv_validBuildOrder = true;
        }

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

    UnitGroupLoopBegin(UnitGroup("Egg", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((libNtve_gf_QueuedUnitTypeInTrainingQueueSlot(UnitGroupLoopCurrent(), 1, 1) == "Overlord")) {
            lv_morphInProgress = true;
        }

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

    UnitGroupLoopBegin(UnitGroup("Egg", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((libNtve_gf_QueuedUnitTypeInTrainingQueueSlot(UnitGroupLoopCurrent(), 1, 1) == "Drone")) {
            lv_morphedCount += 1;
        }

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

    UnitGroupLoopBegin(UnitGroup("Egg", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((libNtve_gf_QueuedUnitTypeInTrainingQueueSlot(UnitGroupLoopCurrent(), 1, 1) == "Drone")) {
            lv_morphedCount += 1;
        }

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

    UnitGroupLoopBegin(UnitGroup("Egg", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((libNtve_gf_QueuedUnitTypeInTrainingQueueSlot(UnitGroupLoopCurrent(), 1, 1) == "Zergling")) {
            lv_morphedCount += 2;
        }

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

    UnitGroupLoopBegin(UnitGroup("Egg", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((libNtve_gf_QueuedUnitTypeInTrainingQueueSlot(UnitGroupLoopCurrent(), 1, 1) == "Roach")) {
            lv_morphedCount += 1;
        }