# Clear Unit Info

Grammar — Clear info text on unit
FlagsNative | Action

Clears the info text for the specified unit.

# Arguments

  • unit — Unit

Returns — void

native void UnitClearInfoText(unit inUnit);

Category: Unit / Properties

# Examples

campaigns/liberty.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:307

    }
    else {
        UnitClearInfoText(lp_chosenUnit);
    }
}

campaigns/liberty.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:646

    }
    else {
        UnitClearInfoText(lp_chosenUnit);
    }
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.galaxy:307

    }
    else {
        UnitClearInfoText(lp_chosenUnit);
    }
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor03.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.galaxy:646

    }
    else {
        UnitClearInfoText(lp_chosenUnit);
    }
}