# Game Speed

Grammar — Game speed
FlagsNative | Function

Returns the game speed.

Returns — int<preset::GameSpeed>

native int GameGetSpeedValue();

Category: Game / Game Settings

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2141


    if ((lp_onOff == true)) {
        libNtve_gv__CineModeSavedSpeed = GameGetSpeedValue();
        GameSetSpeedValue(c_gameSpeedNormal);
        libNtve_gv__CineModeSavedAIPaused = AITimeIsPaused();

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1825


    if ((lp_onOff == true)) {
        libNtve_gv__CineModeSavedSpeed = GameGetSpeedValue();
        GameSetSpeedValue(c_gameSpeedNormal);
        libNtve_gv__CineModeSavedAIPaused = AITimeIsPaused();

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:921

    DialogControlSetEnabled(gv_tryMeModePanel.lv_gameSpeedButton, PlayerGroupAll(), true);
    DialogControlSetVisible(gv_tryMeModePanel.lv_gameSpeedFrame, PlayerGroupAll(), true);
    lv_speed = GameGetSpeedValue();
    libNtve_gf_SetDialogItemCurrentValue(gv_tryMeModePanel.lv_gameSpeedSlider, gf_GameSpeedIndex(lv_speed), PlayerGroupAll());
    libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_gameSpeedLabel, gf_GameSpeedText(lv_speed), PlayerGroupAll());

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmapmap/MapScript.galaxy:921

    DialogControlSetEnabled(gv_tryMeModePanel.lv_gameSpeedButton, PlayerGroupAll(), true);
    DialogControlSetVisible(gv_tryMeModePanel.lv_gameSpeedFrame, PlayerGroupAll(), true);
    lv_speed = GameGetSpeedValue();
    libNtve_gf_SetDialogItemCurrentValue(gv_tryMeModePanel.lv_gameSpeedSlider, gf_GameSpeedIndex(lv_speed), PlayerGroupAll());
    libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_gameSpeedLabel, gf_GameSpeedText(lv_speed), PlayerGroupAll());