# Set Unit Info Text

Grammar — Set unit info text to text
FlagsNative | Action

Sets the info text for the specified unit without modifying the tip or subtip.

# Arguments

  • unit — Unit
  • text — Text

Returns — void

native void UnitSetInfoText2(unit inUnit, text info);

Category: Unit / Properties

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:5623

    TextExpressionSetToken("Param/Expression/lib_COMI_55059129", "NameVar", libCOMI_gv_cM_NovaUnitName_Text[lp_iD]);
    TextExpressionSetToken("Param/Expression/lib_COMI_55059129", "Kills", IntToText(libNtve_gf_UnitGetPropertyKills(lp_updatingUnit, c_unitPropCurrent)));
    UnitSetInfoText2(lp_updatingUnit, TextExpressionAssemble("Param/Expression/lib_COMI_55059129"));
}