# Clear Unit Info
Grammar — Clear info text on unit
Flags —Native
|Action
Clears the info text for the specified unit.
# Arguments
unit
— Unit
Returns — void
native void UnitClearInfoText(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/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1460
PingDestroy(gv_pingCommandCenterSE);
PingDestroy(gv_pingCommandCenterNE);
UnitClearInfoText(UnitFromId(893));
UnitClearInfoText(UnitFromId(894));
UnitClearInfoText(UnitFromId(767));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1461
PingDestroy(gv_pingCommandCenterNE);
UnitClearInfoText(UnitFromId(893));
UnitClearInfoText(UnitFromId(894));
UnitClearInfoText(UnitFromId(767));
BoardDestroy(gv_merc_Contract_Price_Board);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1462
UnitClearInfoText(UnitFromId(893));
UnitClearInfoText(UnitFromId(894));
UnitClearInfoText(UnitFromId(767));
BoardDestroy(gv_merc_Contract_Price_Board);
SoundPlay(SoundLink("UI_TechConsole_Purchase", -1), PlayerGroupAll(), 100.0, 0.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1634
PingDestroy(gv_pingCommandCenterSE);
PingDestroy(gv_pingCommandCenterNE);
UnitClearInfoText(UnitFromId(893));
UnitClearInfoText(UnitFromId(894));
UnitClearInfoText(UnitFromId(767));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1635
PingDestroy(gv_pingCommandCenterNE);
UnitClearInfoText(UnitFromId(893));
UnitClearInfoText(UnitFromId(894));
UnitClearInfoText(UnitFromId(767));
BoardDestroy(gv_merc_Contract_Price_Board);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1636
UnitClearInfoText(UnitFromId(893));
UnitClearInfoText(UnitFromId(894));
UnitClearInfoText(UnitFromId(767));
BoardDestroy(gv_merc_Contract_Price_Board);
libNtve_gf_HideScreenButton(false, 1);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:307
}
else {
UnitClearInfoText(lp_chosenUnit);
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:5098
autoA110474A_var = UnitGroupUnitFromEnd(autoA110474A_g, autoA110474A_u);
if (autoA110474A_var == null) { break; }
UnitClearInfoText(autoA110474A_var);
UnitSetState(autoA110474A_var, c_unitStateTooltipable, false);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:1836
gv_unitsRescued += 1;
libNtve_gf_RescueUnit(auto2AFE1C29_var, gv_p01_USER, true);
UnitClearInfoText(auto2AFE1C29_var);
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:646
}
else {
UnitClearInfoText(lp_chosenUnit);
}
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:1460
PingDestroy(gv_pingCommandCenterSE);
PingDestroy(gv_pingCommandCenterNE);
UnitClearInfoText(UnitFromId(893));
UnitClearInfoText(UnitFromId(894));
UnitClearInfoText(UnitFromId(767));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:1461
PingDestroy(gv_pingCommandCenterNE);
UnitClearInfoText(UnitFromId(893));
UnitClearInfoText(UnitFromId(894));
UnitClearInfoText(UnitFromId(767));
BoardDestroy(gv_merc_Contract_Price_Board);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:1462
UnitClearInfoText(UnitFromId(893));
UnitClearInfoText(UnitFromId(894));
UnitClearInfoText(UnitFromId(767));
BoardDestroy(gv_merc_Contract_Price_Board);
SoundPlay(SoundLink("UI_TechConsole_Purchase", -1), PlayerGroupAll(), 100.0, 0.0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:1634
PingDestroy(gv_pingCommandCenterSE);
PingDestroy(gv_pingCommandCenterNE);
UnitClearInfoText(UnitFromId(893));
UnitClearInfoText(UnitFromId(894));
UnitClearInfoText(UnitFromId(767));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:1635
PingDestroy(gv_pingCommandCenterNE);
UnitClearInfoText(UnitFromId(893));
UnitClearInfoText(UnitFromId(894));
UnitClearInfoText(UnitFromId(767));
BoardDestroy(gv_merc_Contract_Price_Board);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:1636
UnitClearInfoText(UnitFromId(893));
UnitClearInfoText(UnitFromId(894));
UnitClearInfoText(UnitFromId(767));
BoardDestroy(gv_merc_Contract_Price_Board);
libNtve_gf_HideScreenButton(false, 1);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor02.sc2map — MapScript.galaxy:307
}
else {
UnitClearInfoText(lp_chosenUnit);
}
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor03.sc2map — MapScript.galaxy:5098
autoA110474A_var = UnitGroupUnitFromEnd(autoA110474A_g, autoA110474A_u);
if (autoA110474A_var == null) { break; }
UnitClearInfoText(autoA110474A_var);
UnitSetState(autoA110474A_var, c_unitStateTooltipable, false);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2map — MapScript.galaxy:1836
gv_unitsRescued += 1;
libNtve_gf_RescueUnit(auto2AFE1C29_var, gv_p01_USER, true);
UnitClearInfoText(auto2AFE1C29_var);
}
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2map — MapScript.galaxy:646
}
else {
UnitClearInfoText(lp_chosenUnit);
}
}