# Game Speed Factor

Grammar — Game speed factor
FlagsNative | Function

Returns the game speed factor.

Returns — fixed

native fixed GameGetSpeed();

Category: Game / Game Settings

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:2157

    TechTreeAbilityAllow(gv_pLAYER_01_USER, AbilityCommand("ZergBuild", 0), true);
    lv_hatcheryBuildTime = (SoundLengthSync(SoundLink(ConversationDataGetSound("zMission_Lab01|Line00027", true), c_soundIndexAny)) + SoundLengthSync(SoundLink(ConversationDataGetSound("zMission_Lab01|Line00015", true), c_soundIndexAny)) + SoundLengthSync(SoundLink(ConversationDataGetSound("zMission_Lab01|Line00180", true), c_soundIndexAny)));
    lv_hatcheryBuildTime *= GameGetSpeed();
    lv_hatcheryBuildTime += 4.0;
    CatalogReferenceSet("Abil,ZergBuild,InfoArray[Build1].Time[0]", gv_pLAYER_01_USER, FixedToString(lv_hatcheryBuildTime, c_fixedPrecisionAny));

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:2157

    TechTreeAbilityAllow(gv_pLAYER_01_USER, AbilityCommand("ZergBuild", 0), true);
    lv_hatcheryBuildTime = (SoundLengthSync(SoundLink(ConversationDataGetSound("zMission_Lab01|Line00027", true), c_soundIndexAny)) + SoundLengthSync(SoundLink(ConversationDataGetSound("zMission_Lab01|Line00015", true), c_soundIndexAny)) + SoundLengthSync(SoundLink(ConversationDataGetSound("zMission_Lab01|Line00180", true), c_soundIndexAny)));
    lv_hatcheryBuildTime *= GameGetSpeed();
    lv_hatcheryBuildTime += 4.0;
    CatalogReferenceSet("Abil,ZergBuild,InfoArray[Build1].Time[0]", gv_pLAYER_01_USER, FixedToString(lv_hatcheryBuildTime, c_fixedPrecisionAny));