# Number Of Items In Training Queue Slot

Grammar — Number of items in unit training queue slot
FlagsNative | Function

Returns the number of items in the specified training queue slot.

# Arguments

  • unit — Unit
  • int — Slot

Returns — int

native int UnitQueueItemCount(unit inUnit, int inSlot);

Category: Unit / Progress And Queues

# Examples

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

    }

    if (((UnitQueueItemCount(gv_terranCommandCenter, 1) >= 1) || (PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals) < 50) || ((UnitGroupCount(UnitGroup("SCV", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0), c_unitCountAlive) + UnitQueueGetProperty(gv_terranCommandCenter, c_unitQueuePropertyUsed)) >= 12))) {
        gf_StopReminderTimer();
        gf_SetOffscreenUnit(null);

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

    }

    if (((UnitQueueItemCount(gv_terranCommandCenter, 1) >= 1) || (PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals) < 50))) {
        gf_StopReminderTimer();
        gf_SetOffscreenUnit(null);

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

    }

    if (((UnitQueueItemCount(gv_terran03Barracks, 1) >= 1) || (PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals) < 50))) {
        gf_StopReminderTimer();
        gf_SetOffscreenUnit(null);

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

    }

    if (((UnitQueueItemCount(gv_terranCommandCenter, 1) >= 1) || (PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals) < 50) || ((UnitGroupCount(UnitGroup("SCV", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0), c_unitCountAlive) + UnitQueueGetProperty(gv_terranCommandCenter, c_unitQueuePropertyUsed)) >= 12))) {
        gf_StopReminderTimer();
        gf_SetOffscreenUnit(null);

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

    }

    if (((UnitQueueItemCount(gv_terranCommandCenter, 1) >= 1) || (PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals) < 50))) {
        gf_StopReminderTimer();
        gf_SetOffscreenUnit(null);

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

    }

    if (((UnitQueueItemCount(gv_terran03Barracks, 1) >= 1) || (PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals) < 50))) {
        gf_StopReminderTimer();
        gf_SetOffscreenUnit(null);