# Set Unit Info SubTip
Grammar — Set unit info subtip to subTip
Flags —Native
|Action
Sets the info subtip for the specified unit without modifying the tip or text.
# Arguments
unit
— Unittext
— SubTip
Returns — void
native void UnitSetInfoSubTip(unit inUnit, text subTip);
# 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/zchar02.sc2map/MapScript.galaxy:966
libSwaC_gf_SetUnitInfoTextCampaign(autoBBD51A65_var, StringExternal("Param/Value/E46F58A3"), StringExternal("Param/Value/FF9A9242"), null);
if ((libHots_gf_DifficultyValueInt2(1, 1, 0) == 1)) {
UnitSetInfoSubTip(autoBBD51A65_var, StringExternal("Param/Value/1F12C68C"));
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:911
libSwaC_gf_SetUnitInfoTextCampaign(auto049A8510_var, StringExternal("Param/Value/C8E99B95"), StringExternal("Param/Value/6559A843"), null);
if ((libHots_gf_DifficultyValueInt2(1, 1, 0) == 1)) {
UnitSetInfoSubTip(auto049A8510_var, StringExternal("Param/Value/BD914B16"));
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar02.sc2map — MapScript.galaxy:966
libSwaC_gf_SetUnitInfoTextCampaign(autoBBD51A65_var, StringExternal("Param/Value/E46F58A3"), StringExternal("Param/Value/FF9A9242"), null);
if ((libHots_gf_DifficultyValueInt2(1, 1, 0) == 1)) {
UnitSetInfoSubTip(autoBBD51A65_var, StringExternal("Param/Value/1F12C68C"));
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map — MapScript.galaxy:911
libSwaC_gf_SetUnitInfoTextCampaign(auto049A8510_var, StringExternal("Param/Value/C8E99B95"), StringExternal("Param/Value/6559A843"), null);
if ((libHots_gf_DifficultyValueInt2(1, 1, 0) == 1)) {
UnitSetInfoSubTip(auto049A8510_var, StringExternal("Param/Value/BD914B16"));
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pulnar01.sc2map/MapScript.galaxy:353
if (auto662517A2_val == ge_PRESET_CelestialLockState_Inactive) {
gv_celestialLocks[lp_index].lv_state = ge_PRESET_CelestialLockState_Inactive;
UnitSetInfoSubTip(gv_celestialLocks[lp_index].lv_celestialLock, StringExternal("Param/Value/DB7CBD4A"));
ActorSend(libNtve_gf_MainActorofUnit(gv_celestialLocks[lp_index].lv_celestialLock), "Signal StateNeutral");
PingSetTooltip(gv_celestialLocks[lp_index].lv_objectivePing, StringExternal("Param/Value/7B6CAE96"));
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pulnar01.sc2map/MapScript.galaxy:368
gv_celestialLocks[lp_index].lv_state = ge_PRESET_CelestialLockState_PlayerControlled;
UnitSetInfoSubTip(gv_celestialLocks[lp_index].lv_celestialLock, StringExternal("Param/Value/20B971DA"));
ActorSend(libNtve_gf_MainActorofUnit(gv_celestialLocks[lp_index].lv_celestialLock), "Signal StateGood");
PingSetTooltip(gv_celestialLocks[lp_index].lv_objectivePing, StringExternal("Param/Value/C0BB7C7F"));
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pulnar01.sc2map/MapScript.galaxy:382
gv_celestialLocks[lp_index].lv_state = ge_PRESET_CelestialLockState_EnemyControlled;
UnitSetInfoSubTip(gv_celestialLocks[lp_index].lv_celestialLock, StringExternal("Param/Value/BBC4FB39"));
ActorSend(libNtve_gf_MainActorofUnit(gv_celestialLocks[lp_index].lv_celestialLock), "Signal StateBad");
PingSetTooltip(gv_celestialLocks[lp_index].lv_objectivePing, StringExternal("Param/Value/5BE1BE19"));
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pulnar01.sc2map/MapScript.galaxy:3485
for ( ; ( (auto24233BFE_ai >= 0 && lv_index <= auto24233BFE_ae) || (auto24233BFE_ai < 0 && lv_index >= auto24233BFE_ae) ) ; lv_index += auto24233BFE_ai ) {
gv_celestialLocks[lv_index].lv_state = ge_PRESET_CelestialLockState_EnemyControlled;
UnitSetInfoSubTip(gv_celestialLocks[lv_index].lv_celestialLock, StringExternal("Param/Value/114D5BE8"));
ActorSend(libNtve_gf_MainActorofUnit(gv_celestialLocks[lv_index].lv_celestialLock), "Signal StateBad");
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pulnar01.sc2map/MapScript.galaxy:3616
libVCUI_gf_ShowHideUnitProgressBar(gv_celestialLocks[1].lv_progressBarDummyUnit, false);
gv_celestialLocks[1].lv_state = ge_PRESET_CelestialLockState_EnemyControlled;
UnitSetInfoSubTip(gv_celestialLocks[1].lv_celestialLock, StringExternal("Param/Value/41F27332"));
ActorSend(libNtve_gf_MainActorofUnit(gv_celestialLocks[1].lv_celestialLock), "Signal StateBad");
return true;
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pulnar01.sc2map/MapScript.galaxy:3674
libVCUI_gf_ShowHideUnitProgressBar(gv_celestialLocks[3].lv_progressBarDummyUnit, false);
gv_celestialLocks[3].lv_state = ge_PRESET_CelestialLockState_EnemyControlled;
UnitSetInfoSubTip(gv_celestialLocks[3].lv_celestialLock, StringExternal("Param/Value/A1BF198B"));
ActorSend(libNtve_gf_MainActorofUnit(gv_celestialLocks[3].lv_celestialLock), "Signal StateBad");
return true;
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar01.sc2map — MapScript.galaxy:353
if (auto662517A2_val == ge_PRESET_CelestialLockState_Inactive) {
gv_celestialLocks[lp_index].lv_state = ge_PRESET_CelestialLockState_Inactive;
UnitSetInfoSubTip(gv_celestialLocks[lp_index].lv_celestialLock, StringExternal("Param/Value/DB7CBD4A"));
ActorSend(libNtve_gf_MainActorofUnit(gv_celestialLocks[lp_index].lv_celestialLock), "Signal StateNeutral");
PingSetTooltip(gv_celestialLocks[lp_index].lv_objectivePing, StringExternal("Param/Value/7B6CAE96"));
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar01.sc2map — MapScript.galaxy:368
gv_celestialLocks[lp_index].lv_state = ge_PRESET_CelestialLockState_PlayerControlled;
UnitSetInfoSubTip(gv_celestialLocks[lp_index].lv_celestialLock, StringExternal("Param/Value/20B971DA"));
ActorSend(libNtve_gf_MainActorofUnit(gv_celestialLocks[lp_index].lv_celestialLock), "Signal StateGood");
PingSetTooltip(gv_celestialLocks[lp_index].lv_objectivePing, StringExternal("Param/Value/C0BB7C7F"));
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar01.sc2map — MapScript.galaxy:382
gv_celestialLocks[lp_index].lv_state = ge_PRESET_CelestialLockState_EnemyControlled;
UnitSetInfoSubTip(gv_celestialLocks[lp_index].lv_celestialLock, StringExternal("Param/Value/BBC4FB39"));
ActorSend(libNtve_gf_MainActorofUnit(gv_celestialLocks[lp_index].lv_celestialLock), "Signal StateBad");
PingSetTooltip(gv_celestialLocks[lp_index].lv_objectivePing, StringExternal("Param/Value/5BE1BE19"));
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar01.sc2map — MapScript.galaxy:3485
for ( ; ( (auto24233BFE_ai >= 0 && lv_index <= auto24233BFE_ae) || (auto24233BFE_ai < 0 && lv_index >= auto24233BFE_ae) ) ; lv_index += auto24233BFE_ai ) {
gv_celestialLocks[lv_index].lv_state = ge_PRESET_CelestialLockState_EnemyControlled;
UnitSetInfoSubTip(gv_celestialLocks[lv_index].lv_celestialLock, StringExternal("Param/Value/114D5BE8"));
ActorSend(libNtve_gf_MainActorofUnit(gv_celestialLocks[lv_index].lv_celestialLock), "Signal StateBad");
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar01.sc2map — MapScript.galaxy:3616
libVCUI_gf_ShowHideUnitProgressBar(gv_celestialLocks[1].lv_progressBarDummyUnit, false);
gv_celestialLocks[1].lv_state = ge_PRESET_CelestialLockState_EnemyControlled;
UnitSetInfoSubTip(gv_celestialLocks[1].lv_celestialLock, StringExternal("Param/Value/41F27332"));
ActorSend(libNtve_gf_MainActorofUnit(gv_celestialLocks[1].lv_celestialLock), "Signal StateBad");
return true;
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pulnar01.sc2map — MapScript.galaxy:3674
libVCUI_gf_ShowHideUnitProgressBar(gv_celestialLocks[3].lv_progressBarDummyUnit, false);
gv_celestialLocks[3].lv_state = ge_PRESET_CelestialLockState_EnemyControlled;
UnitSetInfoSubTip(gv_celestialLocks[3].lv_celestialLock, StringExternal("Param/Value/A1BF198B"));
ActorSend(libNtve_gf_MainActorofUnit(gv_celestialLocks[3].lv_celestialLock), "Signal StateBad");
return true;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:4955
UnitSetCustomValue(lp_scrap, 63, IntToFixed(lp_vespene));
UnitSetInfoTip(lp_scrap, StringExternal("Param/Value/lib_COMI_96D541E3"));
UnitSetInfoSubTip(lp_scrap, StringExternal("Param/Value/lib_COMI_8EB10230"));
}