# Error Message

Grammar — Display message and play sound for players
FlagsAction

Displays an error message.

# Arguments

  • playergroup — Players
  • text — Message
  • soundlink — Sound

Returns — void

void libNtve_gf_UIErrorMessage(
	playergroup lp_players,
	text lp_message,
	soundlink lp_sound,
);

Category: UI / Text

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:6586

        lv_actualTargetPoint = libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(lv_unit), lv_modifiedDistance, lv_playerTargetPoint);
        if ((DistanceBetweenPoints(UnitGetPosition(lv_unit), lv_actualTargetPoint) <= (lv_anubarakRadius + 0.125))) {
            libNtve_gf_UIErrorMessage(libCore_gv_playerGroupFromPlayer[lv_player], StringExternal("Param/Value/lib_GDHL_F272EA53"), SoundLink("UI_GenericError", -1));
            UnitBehaviorRemove(lv_unit, "AnubarakBurrowChargeCaster", 1);
            return true;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:7529


        if ((DistanceBetweenPoints(UnitGetPosition(lv_unit), lv_actualTargetPoint) <= (lv_barbarianRadius + 0.125))) {
            libNtve_gf_UIErrorMessage(libCore_gv_playerGroupFromPlayer[lv_player], StringExternal("Param/Value/lib_GDHL_D9EC6B41"), SoundLink("UI_GenericError", -1));
            UnitBehaviorRemove(lv_unit, "BarbarianLeap", 1);
            UnitAbilityReset(lv_unit, AbilityCommand("BarbarianLeap", 0), c_spendLocationAll);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:7601


        if ((DistanceBetweenPoints(lv_barbarianPosition, lv_actualTargetPoint) <= (lv_barbarianRadius + 0.125))) {
            libNtve_gf_UIErrorMessage(libCore_gv_playerGroupFromPlayer[UnitGetOwner(lv_eventUnit)], StringExternal("Param/Value/lib_GDHL_EC6CBAAF"), SoundLink("UI_GenericError", -1));
            UnitBehaviorRemove(lv_eventUnit, "BarbarianLeap", 1);
            UnitAbilityReset(lv_eventUnit, AbilityCommand("BarbarianLeap", 0), c_spendLocationAll);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:16288

                    UnitSetPosition(lv_heroUnit, lv_targetPoint2, true);
                    UnitIssueOrder(lv_heroUnit, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
                    libNtve_gf_UIErrorMessage(libCore_gv_playerGroupFromPlayer[lv_player], StringExternal("Param/Value/lib_Game_5C4701FE"), SoundLink("UI_GenericError", -1));
                }

mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmodbase.stormdata/LibMSHE.galaxy:2088


        if ((DistanceBetweenPoints(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), lv_actualTargetPoint) <= (lv_barbarianRadius + 0.125))) {
            libNtve_gf_UIErrorMessage(libCore_gv_playerGroupFromPlayer[EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster)], StringExternal("Param/Value/lib_MSHE_D63B1DB4"), SoundLink("UI_GenericError", -1));
            UnitBehaviorRemove(EventPlayerEffectUsedUnit(c_effectUnitCaster), "MercPunisherLanerLeap", 1);
            UnitAbilityReset(EventPlayerEffectUsedUnit(c_effectUnitCaster), AbilityCommand("MercPunisherLanerLeap", 0), c_spendLocationAll);

mods/heroesmapmods/battlegroundmapmods/infernalshrinesdata.stormmodbase.stormdata/LibMSHD.galaxy:150


        if ((DistanceBetweenPoints(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), lv_actualTargetPoint) <= (lv_barbarianRadius + 0.125))) {
            libNtve_gf_UIErrorMessage(libCore_gv_playerGroupFromPlayer[EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster)], StringExternal("Param/Value/lib_MSHD_D63B1DB4"), SoundLink("UI_GenericError", -1));
            UnitBehaviorRemove(EventPlayerEffectUsedUnit(c_effectUnitCaster), "MercPunisherLanerLeap", 1);
            UnitAbilityReset(EventPlayerEffectUsedUnit(c_effectUnitCaster), AbilityCommand("MercPunisherLanerLeap", 0), c_spendLocationAll);

mods/heromods/chogall.stormmodbase.stormdata/LibHCHO.galaxy:1962


    if (((UnitIsAlive(libGDHL_gv_chogallPairs[lv_choGallPairsTeamID].lv_choUnit) == false) || (UnitIsAlive(libGDHL_gv_chogallPairs[lv_choGallPairsTeamID].lv_gallUnit) == false))) {
        libNtve_gf_UIErrorMessage(PlayerGroupSingle(EventPlayer()), StringExternal("Param/Value/lib_HCHO_35C15FA3"), SoundLink("UI_GenericError_Heroes", -1));
    }
    else {

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


    }
    libNtve_gf_UIErrorMessage(PlayerGroupSingle(EventPlayer()), StringExternal("Error/CannotAdvancedConstruction"), SoundLink("UI_GenericError", -1));
    return true;
}

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

    }
    else {
        libNtve_gf_UIErrorMessage(PlayerGroupSingle(lv_p), StringExternal("Param/Value/lib_COMI_8F36DA6F"), SoundLink("UI_GenericError", -1));
    }
    return true;