# Set Command Type Disabled Message

Grammar — Set command type disabled message for playerGroup to textMessage
FlagsNative | Action

Specifies the message to be displayed to players when they attempt to use a command that has been disabled by the “Enable/Disable Command Type” action.

# Arguments

  • playergroup — PlayerGroup
  • text — TextMessage

Returns — void

native void UISetCommandDisallowedMessage(
	playergroup players,
	text message,
);

Category: UI / Game UI

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:4069

    UISetMode(PlayerGroupAll(), c_uiModeFullscreen, c_transitionDurationImmediate);
    libNtve_gf_HideGameUI(false, PlayerGroupAll());
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/A6C3041C"));
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeBattleUI, true);
    gv_endCinematicGroup = UnitGroup(null, gv_p3_CINE, RegionFromId(1), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/advancedcommand.sc2map/MapScript.galaxy:194

    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false);
    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/C9B47DEF"));
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/advancedcommand.sc2map/MapScript.galaxy:735

    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false);
    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/9993AB03"));
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/advancedcommand.sc2map/MapScript.galaxy:903

    libNtve_gf_HideScreenButton(false, gv_readyButton);
    VisRevealerDestroy(gv_revealer);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/80B968CF"));
    libChal_gf_ShowRacingStart();
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/DCC5BD70"));

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/advancedcommand.sc2map/MapScript.galaxy:905

    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/80B968CF"));
    libChal_gf_ShowRacingStart();
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/DCC5BD70"));
    gv_ready = true;
    TriggerEnable(gt_DisplayMultikillMessage, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosspsionics.sc2map/MapScript.galaxy:883

    }
    IntLoopEnd();
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/7D07A721"));
    if ((gv_retryCount == 2)) {
        gv_retryCount = (gv_retryCount + 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosspsionics.sc2map/MapScript.galaxy:1052


    libNtve_gf_HideScreenButton(false, gv_readyButton);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/4F4F56E9"));
    libChal_gf_ShowRacingStart();
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringToText(""));

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosspsionics.sc2map/MapScript.galaxy:1054

    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/4F4F56E9"));
    libChal_gf_ShowRacingStart();
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringToText(""));
    gv_ready = true;
    UnitGroupLoopBegin(UnitGroup(null, gv_pLAYER_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/terrancovertops.sc2map/MapScript.galaxy:189

    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false);
    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/615A98DF"));
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/terrancovertops.sc2map/MapScript.galaxy:721

    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false);
    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/2FFC5827"));
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/terrancovertops.sc2map/MapScript.galaxy:889

    libNtve_gf_HideScreenButton(false, gv_readyButton);
    VisRevealerDestroy(gv_revealer);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/F6EE76D3"));
    libChal_gf_ShowRacingStart();
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringToText(""));

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/terrancovertops.sc2map/MapScript.galaxy:891

    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/F6EE76D3"));
    libChal_gf_ShowRacingStart();
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringToText(""));
    gv_ready = true;
    TriggerExecute(gt_ObjectiveKillUpdate, true, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zerginfestation.sc2map/MapScript.galaxy:189

    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false);
    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowMinimap, false);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/8D855B3F"));
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zerginfestation.sc2map/MapScript.galaxy:703

    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false);
    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/F9FB8152"));
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zerginfestation.sc2map/MapScript.galaxy:870

    libNtve_gf_HideScreenButton(false, gv_readyButton);
    VisRevealerDestroy(gv_revealer);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/1D0198F6"));
    libChal_gf_ShowRacingStart();
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringToText(""));

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zerginfestation.sc2map/MapScript.galaxy:872

    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/1D0198F6"));
    libChal_gf_ShowRacingStart();
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringToText(""));
    gv_ready = true;
    TriggerExecute(gt_ObjectiveKillUpdate, true, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:4069

    UISetMode(PlayerGroupAll(), c_uiModeFullscreen, c_transitionDurationImmediate);
    libNtve_gf_HideGameUI(false, PlayerGroupAll());
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/A6C3041C"));
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeBattleUI, true);
    gv_endCinematicGroup = UnitGroup(null, gv_p3_CINE, RegionFromId(1), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/advancedcommand.sc2mapMapScript.galaxy:194

    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false);
    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/C9B47DEF"));
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/advancedcommand.sc2mapMapScript.galaxy:735

    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false);
    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/9993AB03"));
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/advancedcommand.sc2mapMapScript.galaxy:903

    libNtve_gf_HideScreenButton(false, gv_readyButton);
    VisRevealerDestroy(gv_revealer);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/80B968CF"));
    libChal_gf_ShowRacingStart();
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/DCC5BD70"));

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/advancedcommand.sc2mapMapScript.galaxy:905

    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/80B968CF"));
    libChal_gf_ShowRacingStart();
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/DCC5BD70"));
    gv_ready = true;
    TriggerEnable(gt_DisplayMultikillMessage, true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosspsionics.sc2mapMapScript.galaxy:883

    }
    IntLoopEnd();
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/7D07A721"));
    if ((gv_retryCount == 2)) {
        gv_retryCount = (gv_retryCount + 1);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosspsionics.sc2mapMapScript.galaxy:1052


    libNtve_gf_HideScreenButton(false, gv_readyButton);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/4F4F56E9"));
    libChal_gf_ShowRacingStart();
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringToText(""));

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosspsionics.sc2mapMapScript.galaxy:1054

    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/4F4F56E9"));
    libChal_gf_ShowRacingStart();
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringToText(""));
    gv_ready = true;
    UnitGroupLoopBegin(UnitGroup(null, gv_pLAYER_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancovertops.sc2mapMapScript.galaxy:189

    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false);
    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/615A98DF"));
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancovertops.sc2mapMapScript.galaxy:721

    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false);
    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/2FFC5827"));
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancovertops.sc2mapMapScript.galaxy:889

    libNtve_gf_HideScreenButton(false, gv_readyButton);
    VisRevealerDestroy(gv_revealer);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/F6EE76D3"));
    libChal_gf_ShowRacingStart();
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringToText(""));

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancovertops.sc2mapMapScript.galaxy:891

    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/F6EE76D3"));
    libChal_gf_ShowRacingStart();
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringToText(""));
    gv_ready = true;
    TriggerExecute(gt_ObjectiveKillUpdate, true, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zerginfestation.sc2mapMapScript.galaxy:189

    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false);
    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowMinimap, false);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/8D855B3F"));
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zerginfestation.sc2mapMapScript.galaxy:703

    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false);
    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/F9FB8152"));
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zerginfestation.sc2mapMapScript.galaxy:870

    libNtve_gf_HideScreenButton(false, gv_readyButton);
    VisRevealerDestroy(gv_revealer);
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/1D0198F6"));
    libChal_gf_ShowRacingStart();
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringToText(""));

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zerginfestation.sc2mapMapScript.galaxy:872

    UISetCommandDisallowedMessage(PlayerGroupAll(), StringExternal("Param/Value/1D0198F6"));
    libChal_gf_ShowRacingStart();
    UISetCommandDisallowedMessage(PlayerGroupAll(), StringToText(""));
    gv_ready = true;
    TriggerExecute(gt_ObjectiveKillUpdate, true, false);