# Unit Progress (Percent)

Grammar — Progress of unit slot slot
FlagsNative | Function

Returns the unit progress in a training slot.

# Arguments

  • unit — Unit
  • int — Slot

Returns — fixed

native fixed UnitGetProgressComplete(
	unit inUnit,
	int inSlot,
);

Category: Unit / Progress And Queues

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:1302


    UnitGroupAdd(gv_unitWarpingIn, EventUnitProgressUnit());
    while (!((UnitGetProgressComplete(EventUnitProgressUnit(), 1) == 100.0))) {
        Wait(0.5, c_timeAI);
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:3196

    UnitSetProgressComplete(EventUnitProgressUnit(), 1, 80);
    UnitGroupAdd(gv_cinematicTempUnits, EventUnitProgressUnit());
    while (!((UnitGetProgressComplete(EventUnitProgressUnit(), 1) == 100.0) && (libNtve_gf_UnitInRegion(EventUnitProgressUnit(), RegionFromId(10)) == true))) {
        Wait(1.0, c_timeGame);
    }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2mapMapScript.galaxy:1302


    UnitGroupAdd(gv_unitWarpingIn, EventUnitProgressUnit());
    while (!((UnitGetProgressComplete(EventUnitProgressUnit(), 1) == 100.0))) {
        Wait(0.5, c_timeAI);
    }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2mapMapScript.galaxy:3196

    UnitSetProgressComplete(EventUnitProgressUnit(), 1, 80);
    UnitGroupAdd(gv_cinematicTempUnits, EventUnitProgressUnit());
    while (!((UnitGetProgressComplete(EventUnitProgressUnit(), 1) == 100.0) && (libNtve_gf_UnitInRegion(EventUnitProgressUnit(), RegionFromId(10)) == true))) {
        Wait(1.0, c_timeGame);
    }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:706


    // Implementation
    while (!(((libVCMI_gf_PlayerInCinematicModeCampaign() == false) || (UnitGetProgressComplete(lp_neuxs, 1) == 100.0)))) {
        Wait(0.2, c_timeGame);
    }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pmoebius01.sc2mapMapScript.galaxy:706


    // Implementation
    while (!(((libVCMI_gf_PlayerInCinematicModeCampaign() == false) || (UnitGetProgressComplete(lp_neuxs, 1) == 100.0)))) {
        Wait(0.2, c_timeGame);
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:9189

    }

    libNtve_gf_SetDialogItemCurrentValue(libCOUI_gv_cU_TychusSquadTrainingProgressBar, (100.0 - UnitGetProgressComplete(libCOUI_gv_cU_TychusSquadBar, 1)), PlayerGroupAll());
    return true;
}