# Set Minimum Game Speed

Grammar — Set the minimum game speed to speed
FlagsNative | Action

Sets the minimum game speed. If necessary, the current game speed will be adjusted to be at least as fast as the new minimum game speed.

# Arguments

Returns — void

native void GameSetSpeedValueMinimum(int speed);

Category: Game / Game Settings

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:8228

        auto149C01FA_val = PlayerDifficulty(1);
        if (auto149C01FA_val == 4) {
            GameSetSpeedValueMinimum(c_gameSpeedFaster);
        }
        else if (auto149C01FA_val == 3) {

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:8231

        }
        else if (auto149C01FA_val == 3) {
            GameSetSpeedValueMinimum(c_gameSpeedFast);
        }
        else {

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:616

    auto32E424C2_val = PlayerDifficulty(1);
    if (auto32E424C2_val == 4) {
        GameSetSpeedValueMinimum(c_gameSpeedFaster);
    }
    else if (auto32E424C2_val == 3) {

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:619

    }
    else if (auto32E424C2_val == 3) {
        GameSetSpeedValueMinimum(c_gameSpeedFast);
    }
    else if (auto32E424C2_val == 2) {

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:622

    }
    else if (auto32E424C2_val == 2) {
        GameSetSpeedValueMinimum(c_gameSpeedSlow);
    }
    else if (auto32E424C2_val == 1) {

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:625

    }
    else if (auto32E424C2_val == 1) {
        GameSetSpeedValueMinimum(c_gameSpeedSlow);
    }
    else {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:4407

    autoBB45CCF8_val = lp_difficulty;
    if (autoBB45CCF8_val == 1) {
        GameSetSpeedValueMinimum(c_gameSpeedSlow);
        PlayerModifyPropertyInt(1, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, FixedToInt((UserDataGetFixed("DifficultySettings", "Casual", "DamageTakenRatio", 1) * 100.0)));
        TechTreeUpgradeAddLevel(1, "SuperiorWarpGates", 1);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:4412

    }
    else if (autoBB45CCF8_val == 2) {
        GameSetSpeedValueMinimum(c_gameSpeedNormal);
        PlayerModifyPropertyInt(1, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, FixedToInt((UserDataGetFixed("DifficultySettings", "Normal", "DamageTakenRatio", 1) * 100.0)));
        TechTreeUpgradeAddLevel(1, "SuperiorWarpGates", 1);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:4417

    }
    else if (autoBB45CCF8_val == 3) {
        GameSetSpeedValueMinimum(c_gameSpeedFast);
        PlayerModifyPropertyInt(1, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, FixedToInt((UserDataGetFixed("DifficultySettings", "Hard", "DamageTakenRatio", 1) * 100.0)));
    }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:4421

    }
    else if (autoBB45CCF8_val == 4) {
        GameSetSpeedValueMinimum(c_gameSpeedFaster);
        PlayerModifyPropertyInt(1, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, FixedToInt((UserDataGetFixed("DifficultySettings", "Brutal", "DamageTakenRatio", 1) * 100.0)));
    }

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibCMMI.galaxy:59

    auto3A9A3E66_val = lp_difficulty;
    if (auto3A9A3E66_val == 1) {
        GameSetSpeedValueMinimum(c_gameSpeedSlow);
        PlayerModifyPropertyInt(1, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, FixedToInt((UserDataGetFixed("DifficultySettings", "Casual", "DamageTakenRatio", 1) * 100.0)));
        TechTreeUpgradeAddLevel(1, "SuperiorWarpGates", 1);

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibCMMI.galaxy:64

    }
    else if (auto3A9A3E66_val == 2) {
        GameSetSpeedValueMinimum(c_gameSpeedNormal);
        PlayerModifyPropertyInt(1, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, FixedToInt((UserDataGetFixed("DifficultySettings", "Normal", "DamageTakenRatio", 1) * 100.0)));
        TechTreeUpgradeAddLevel(1, "SuperiorWarpGates", 1);

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibCMMI.galaxy:69

    }
    else if (auto3A9A3E66_val == 3) {
        GameSetSpeedValueMinimum(c_gameSpeedFast);
        PlayerModifyPropertyInt(1, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, FixedToInt((UserDataGetFixed("DifficultySettings", "Hard", "DamageTakenRatio", 1) * 100.0)));
    }

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibCMMI.galaxy:73

    }
    else if (auto3A9A3E66_val == 4) {
        GameSetSpeedValueMinimum(c_gameSpeedFaster);
        PlayerModifyPropertyInt(1, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, FixedToInt((UserDataGetFixed("DifficultySettings", "Brutal", "DamageTakenRatio", 1) * 100.0)));
    }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:311

    auto32E424C2_val = PlayerDifficulty(1);
    if (auto32E424C2_val == 4) {
        GameSetSpeedValueMinimum(c_gameSpeedFaster);
    }
    else if (auto32E424C2_val == 3) {

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:314

    }
    else if (auto32E424C2_val == 3) {
        GameSetSpeedValueMinimum(c_gameSpeedFast);
    }
    else if (auto32E424C2_val == 2) {

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:317

    }
    else if (auto32E424C2_val == 2) {
        GameSetSpeedValueMinimum(c_gameSpeedSlow);
    }
    else if (auto32E424C2_val == 1) {

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:320

    }
    else if (auto32E424C2_val == 1) {
        GameSetSpeedValueMinimum(c_gameSpeedSlow);
    }
    else {