# Hide Unit Status Bar

Grammar — Hide status bar for unit
FlagsNative | Action

If the game setting for unit status bar display is Always, this function doesn’t work.

# Arguments

  • unit — Unit

Returns — void

native void UnitStatusBarClearOverride(unit inUnit);

Category: Unit / Properties

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar01.sc2map/MapScript.galaxy:531

            UnitBehaviorRemove(lp_eggToCorrupt, "TerrazineCountdownDummyBar", 1);
            UnitSetState(lp_eggToCorrupt, c_unitStateStatusBar, false);
            UnitStatusBarClearOverride(lp_eggToCorrupt);
            UnitStatusBarClearOverride(lp_eggToCorrupt);
            libNtve_gf_KillModel(lv_corruptionEffect);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar01.sc2map/MapScript.galaxy:532

            UnitSetState(lp_eggToCorrupt, c_unitStateStatusBar, false);
            UnitStatusBarClearOverride(lp_eggToCorrupt);
            UnitStatusBarClearOverride(lp_eggToCorrupt);
            libNtve_gf_KillModel(lv_corruptionEffect);
            libNtve_gf_SendActorMessageToUnit(gv_zagara, "Signal CollectStop");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar01.sc2map/MapScript.galaxy:553

    UnitBehaviorRemove(lp_eggToCorrupt, "TerrazineCountdownDummyBar", 1);
    UnitSetState(lp_eggToCorrupt, c_unitStateStatusBar, false);
    UnitStatusBarClearOverride(lp_eggToCorrupt);
    auto681F11C8_val = UnitGetType(lp_eggToCorrupt);
    if (auto681F11C8_val == "CharEggSackOneEgg") {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal02.sc2map/MapScript.galaxy:4013

    libSwaC_gf_SetHeroPanelUnit(2, gv_dEHAKA);
    libNtve_gf_SendActorMessageToUnit(gv_dEHAKA, "Signal RemoveGlow");
    UnitStatusBarClearOverride(gv_dEHAKA);
    UnitSetPosition(gv_dEHAKA, PointFromId(1045), false);
    UnitSetFacing(gv_dEHAKA, PointGetFacing(PointFromId(1045)), 0.0);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:4702


    if ((gf_IsCorpseOrMeat(lv_corpse, ge_CorpseOrMeat_Meat) == true)) {
        UnitStatusBarClearOverride(lv_corpse);
        UnitGroupRemove(gv_corpses_All, lv_corpse);
        gv_corpse_PerCamp[lv_campIndex] = null;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:2710

            gv_attackUnitCountdowns[lv_i] -= 1;
            if ((gv_attackUnitCountdowns[lv_i] <= 0)) {
                UnitStatusBarClearOverride(gv_attackedUnits[lv_i]);
                gv_attackedUnits[lv_i] = null;
            }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map/MapScript.galaxy:1593

            gv_attackUnitCountdowns[lv_attackedUnitIndex] -= 1;
            if ((gv_attackUnitCountdowns[lv_attackedUnitIndex] <= 0)) {
                UnitStatusBarClearOverride(gv_attackedUnits[lv_attackedUnitIndex]);
                gv_attackedUnits[lv_attackedUnitIndex] = null;
            }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar01.sc2mapMapScript.galaxy:531

            UnitBehaviorRemove(lp_eggToCorrupt, "TerrazineCountdownDummyBar", 1);
            UnitSetState(lp_eggToCorrupt, c_unitStateStatusBar, false);
            UnitStatusBarClearOverride(lp_eggToCorrupt);
            UnitStatusBarClearOverride(lp_eggToCorrupt);
            libNtve_gf_KillModel(lv_corruptionEffect);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar01.sc2mapMapScript.galaxy:532

            UnitSetState(lp_eggToCorrupt, c_unitStateStatusBar, false);
            UnitStatusBarClearOverride(lp_eggToCorrupt);
            UnitStatusBarClearOverride(lp_eggToCorrupt);
            libNtve_gf_KillModel(lv_corruptionEffect);
            libNtve_gf_SendActorMessageToUnit(gv_zagara, "Signal CollectStop");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar01.sc2mapMapScript.galaxy:553

    UnitBehaviorRemove(lp_eggToCorrupt, "TerrazineCountdownDummyBar", 1);
    UnitSetState(lp_eggToCorrupt, c_unitStateStatusBar, false);
    UnitStatusBarClearOverride(lp_eggToCorrupt);
    auto681F11C8_val = UnitGetType(lp_eggToCorrupt);
    if (auto681F11C8_val == "CharEggSackOneEgg") {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2mapMapScript.galaxy:4013

    libSwaC_gf_SetHeroPanelUnit(2, gv_dEHAKA);
    libNtve_gf_SendActorMessageToUnit(gv_dEHAKA, "Signal RemoveGlow");
    UnitStatusBarClearOverride(gv_dEHAKA);
    UnitSetPosition(gv_dEHAKA, PointFromId(1045), false);
    UnitSetFacing(gv_dEHAKA, PointGetFacing(PointFromId(1045)), 0.0);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2mapMapScript.galaxy:4702


    if ((gf_IsCorpseOrMeat(lv_corpse, ge_CorpseOrMeat_Meat) == true)) {
        UnitStatusBarClearOverride(lv_corpse);
        UnitGroupRemove(gv_corpses_All, lv_corpse);
        gv_corpse_PerCamp[lv_campIndex] = null;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2mapMapScript.galaxy:2710

            gv_attackUnitCountdowns[lv_i] -= 1;
            if ((gv_attackUnitCountdowns[lv_i] <= 0)) {
                UnitStatusBarClearOverride(gv_attackedUnits[lv_i]);
                gv_attackedUnits[lv_i] = null;
            }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2mapMapScript.galaxy:1593

            gv_attackUnitCountdowns[lv_attackedUnitIndex] -= 1;
            if ((gv_attackUnitCountdowns[lv_attackedUnitIndex] <= 0)) {
                UnitStatusBarClearOverride(gv_attackedUnits[lv_attackedUnitIndex]);
                gv_attackedUnits[lv_attackedUnitIndex] = null;
            }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:22475

    }
    UnitSetOwner(lv_bribedUnit, lv_regenGlobeOwner, true);
    UnitStatusBarClearOverride(lv_bribedUnit);
    Wait(0.25, c_timeGame);
    UnitStatusBarOverride(lv_bribedUnit, c_unitStatusGroupAll);

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:1298

        if (auto682B698F_var == null) { break; }
        libNtve_gf_MakeUnitInvulnerable(auto682B698F_var, true);
        UnitStatusBarClearOverride(auto682B698F_var);
    }
    return true;

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:1298

        if (auto682B698F_var == null) { break; }
        libNtve_gf_MakeUnitInvulnerable(auto682B698F_var, true);
        UnitStatusBarClearOverride(auto682B698F_var);
    }
    return true;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:7618

    libNtve_gf_CreateUnitsWithDefaultFacing(1, "MutatorCandyBowl", 0, 0, PointInterpolate(PlayerStartLocation(1), PlayerStartLocation(2), 0.5));
    libCOMU_gv_cT_CandyBowlUnit = UnitLastCreated();
    UnitStatusBarClearOverride(libCOMU_gv_cT_CandyBowlUnit);
    TextTagCreate(TextExpressionAssemble("Param/Expression/lib_COMU_DB1AC958"), 24, UnitGetPosition(libCOMU_gv_cT_CandyBowlUnit), 3.0, true, false, PlayerGroupAll());
    libCOMU_gv_cT_CandyBowlTextTag = TextTagLastCreated();