# Hide Unit Status Bar
Grammar — Hide status bar for unit
Flags —Native
|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);
# Related
Category: Unit / Properties
- Unit Type Of Unit —
string
<gamelink::Unit> — UnitGetType - Unit Tag —
int
— UnitGetTag - Unit Seed —
int
— UnitGetSeed - Unit Property Changes —
void
— TriggerAddEventUnitProperty - Triggering Unit Property —
int
<preset::Unit_Property> — EventUnitProperty - Triggering Unit Property Change (Integer) —
int
— EventUnitPropertyChangeInt - Triggering Unit Property Change (Real) —
fixed
— EventUnitPropertyChangeFixed - Set Unit Property —
void
— UnitSetPropertyFixed - Set Unit State —
void
— UnitSetState - Set Unit Seed —
void
— UnitSetSeed - Reset Unit Seed —
void
— UnitResetSeed - Make Unit Invulnerable —
void
— libNtve_gf_MakeUnitInvulnerable - Make Unit Uncommandable —
void
— libNtve_gf_MakeUnitUncommandable - Unit Property —
fixed
— UnitGetPropertyFixed - Unit Property (Int) —
int
— UnitGetPropertyInt - Unit Type Property —
fixed
— UnitTypeGetProperty - Unit Classification Check —
bool
— UnitTestState - Unit Type Classification Check —
bool
— UnitTypeTestFlag - Unit Type Attribute Check —
bool
— UnitTypeTestAttribute - Unit Targetable Check —
bool
— UnitTestPlane - Unit Is Invulnerable —
bool
— libNtve_gf_UnitIsInvulnerable - Unit Kills —
int
— libNtve_gf_UnitGetPropertyKills - Unit Resources —
int
— libNtve_gf_UnitGetPropertyResources - Unit Attachment Point —
point
— UnitGetAttachmentPoint - Name Of Unit Type —
text
— UnitTypeGetName - Gender Code Of Unit Type —
string
— UnitTypeGetGenderCode - Unit Type Cost —
int
— UnitTypeGetCost - Unit Type Is Affected By Upgrade —
bool
— UnitTypeIsAffectedByUpgrade - Reset Movement Speed —
void
— UnitResetSpeed - Unit Uses Mover —
bool
— UnitMoverExists - Unit Type Uses Mover —
bool
— libNtve_gf_UnitMoverExists - Unit Type From String —
string
<gamelink::Unit> — UnitTypeFromString - Set Unit Color —
void
— UnitSetTeamColorIndex - Set Unit Info Button - Ability Tooltip —
void
— libNtve_gf_SetUnitInfoButtonAbilityTooltip - Set Unit Info Button - Button Tooltip —
void
— libNtve_gf_SetUnitInfoButtonButtonTooltip - Set Unit Info Button - Item Tooltip —
void
— libNtve_gf_SetUnitInfoButtonItemTooltip - Reset Unit Info Button - Ability Tooltip —
void
— libNtve_gf_ResetUnitInfoButtonAbilityTooltip - Reset Unit Info Button - Button Tooltip —
void
— libNtve_gf_ResetUnitInfoButtonButtonTooltip - Reset Unit Info Button - Item Tooltip —
void
— libNtve_gf_ResetUnitInfoButtonItemTooltip - Set Unit Command Button Tooltip —
void
— UnitSetInfoButtonTooltip - Reset Unit Command Button Tooltip —
void
— UnitClearInfoButtonTooltip - Set Unit Highlight Cursor —
void
— UnitSetCursor - Set Unit Ping Cursor —
void
— UnitSetPingCursor - Set Unit Info —
void
— UnitSetInfoText - Set Unit Info Text —
void
— UnitSetInfoText2 - Set Unit Info Tip —
void
— UnitSetInfoTip - Set Unit Info SubTip —
void
— UnitSetInfoSubTip - Clear Unit Info —
void
— UnitClearInfoText - Set Unit Status Bar State (Deprecated) —
void
— UnitForceStatusBar - Show Unit Status Bar —
void
— UnitStatusBarOverride - Hide Unit Status Bar —
void
— UnitStatusBarClearOverride - Set Unit Scale —
void
— UnitSetScale - Set Unit Model Variation —
void
— libNtve_gf_UnitSetVariation - Change Unit Height —
void
— UnitSetHeight - Height Of Unit —
fixed
— UnitGetHeight - Change Unit Damage —
void
— libNtve_gf_ChangeUnitDamage - Add On Child —
unit
— UnitAddOnChild - Add On Parent —
unit
— UnitAddOnParent
# Examples
campaigns/swarm.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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;
}
mods/heroesdata.stormmod — base.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.sc2mod — base3.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.sc2map — MapScript.galaxy:1298
if (auto682B698F_var == null) { break; }
libNtve_gf_MakeUnitInvulnerable(auto682B698F_var, true);
UnitStatusBarClearOverride(auto682B698F_var);
}
return true;
mods/starcoop/starcoop.sc2mod — base.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();