# Training Queue Property Of Unit

Grammar — Training queue property of unit
FlagsNative | Function

Returns the training queue property of a unit.

# Arguments

Returns — int

native int UnitQueueGetProperty(unit inUnit, int inProp);

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:7502


    TriggerQueueEnter();
    if (((UnitGroupCount(UnitGroup("SCV", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) + UnitQueueGetProperty(gv_terranCommandCenter, c_unitQueuePropertyUsed)) >= 12)) {
        TriggerExecute(gt_TerranFinishSCVsComplete, true, false);
    }

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

    }

    if (((UnitIsSelected(gv_terranCommandCenter, gv_p01_USER) == true) || ((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_ClearAllTutorialReticles();
        gf_DestroyTutorialTextTag();

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

    TriggerEnable(gt_TerranMakeMarinesBarracksSelection, true);
    TriggerExecute(gt_TerranMakeMarinesBarracksSelection, true, false);
    if ((UnitQueueGetProperty(gv_terran03Barracks, c_unitQueuePropertyUsed) == 0)) {
        UISetButtonFaceHighlighted(PlayerGroupAll(), "Marine", true);
    }

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

    UnitGroupLoopBegin(gv_protossGateways);
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        lv_trainingSlotsUsed += UnitQueueGetProperty(UnitGroupLoopCurrent(), c_unitQueuePropertyUsed);
    }
    UnitGroupLoopEnd();

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

    UnitGroupLoopBegin(gv_protossGateways);
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((UnitQueueGetProperty(UnitGroupLoopCurrent(), c_unitQueuePropertyUsed) > 0)) {
            lv_gatewaysBusy += 1;
            lv_trainingSlotsUsed += UnitQueueGetProperty(UnitGroupLoopCurrent(), c_unitQueuePropertyUsed);

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

        if ((UnitQueueGetProperty(UnitGroupLoopCurrent(), c_unitQueuePropertyUsed) > 0)) {
            lv_gatewaysBusy += 1;
            lv_trainingSlotsUsed += UnitQueueGetProperty(UnitGroupLoopCurrent(), c_unitQueuePropertyUsed);
        }
        else {

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

    UnitGroupLoopBegin(gv_protossGateways);
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((UnitQueueGetProperty(UnitGroupLoopCurrent(), c_unitQueuePropertyUsed) > 0)) {
            lv_gatewaysBusy += 1;
        }

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:7502


    TriggerQueueEnter();
    if (((UnitGroupCount(UnitGroup("SCV", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) + UnitQueueGetProperty(gv_terranCommandCenter, c_unitQueuePropertyUsed)) >= 12)) {
        TriggerExecute(gt_TerranFinishSCVsComplete, true, false);
    }

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

    }

    if (((UnitIsSelected(gv_terranCommandCenter, gv_p01_USER) == true) || ((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_ClearAllTutorialReticles();
        gf_DestroyTutorialTextTag();

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

    TriggerEnable(gt_TerranMakeMarinesBarracksSelection, true);
    TriggerExecute(gt_TerranMakeMarinesBarracksSelection, true, false);
    if ((UnitQueueGetProperty(gv_terran03Barracks, c_unitQueuePropertyUsed) == 0)) {
        UISetButtonFaceHighlighted(PlayerGroupAll(), "Marine", true);
    }

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

    UnitGroupLoopBegin(gv_protossGateways);
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        lv_trainingSlotsUsed += UnitQueueGetProperty(UnitGroupLoopCurrent(), c_unitQueuePropertyUsed);
    }
    UnitGroupLoopEnd();

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

    UnitGroupLoopBegin(gv_protossGateways);
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((UnitQueueGetProperty(UnitGroupLoopCurrent(), c_unitQueuePropertyUsed) > 0)) {
            lv_gatewaysBusy += 1;
            lv_trainingSlotsUsed += UnitQueueGetProperty(UnitGroupLoopCurrent(), c_unitQueuePropertyUsed);

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

        if ((UnitQueueGetProperty(UnitGroupLoopCurrent(), c_unitQueuePropertyUsed) > 0)) {
            lv_gatewaysBusy += 1;
            lv_trainingSlotsUsed += UnitQueueGetProperty(UnitGroupLoopCurrent(), c_unitQueuePropertyUsed);
        }
        else {

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

    UnitGroupLoopBegin(gv_protossGateways);
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((UnitQueueGetProperty(UnitGroupLoopCurrent(), c_unitQueuePropertyUsed) > 0)) {
            lv_gatewaysBusy += 1;
        }