# Wait For Sound Durations

Grammar — Wait until all active sound duration queries have been received
FlagsNative | Action

Waits until all queries sent with “Query Sound Duration” have been received for all players.

Returns — void

native void SoundLengthQueryWait();

Category: Sound / Sound Properties

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:7715

    else {
    }
    SoundLengthQueryWait();
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:12988

    }

    SoundLengthQueryWait();
    gf_RoomScenePrepare(lp_room, ge_SceneType_Scene);
    gf_HideAllActors(false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:13903

    }

    SoundLengthQueryWait();
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:26675

        CameraApplyInfo(1, CameraInfoFromId(1030), 0.0, -1, 10, true);
        Wait(0.5, c_timeReal);
        SoundLengthQueryWait();
        CameraApplyInfo(1, CameraInfoFromId(394), (SoundLengthSync(SoundLink("CantinaTychusTychus00083", 0)) + 1.0), -1, 20, true);
        gf_MakeUnitLookAtPointWithDebugControl(gf_ActorUnit(ge_ActorID_ActorTychus), "VerySlowHeadOnly", libNtve_gf_PointWithZOffset(PointWithOffsetPolar(UnitGetPosition(gf_ActorUnit(ge_ActorID_ActorTychus)), 0.6, (UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorTychus)) - 15.0)), 0.65));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:33883

    gf_PreloadUnitStoryMap(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Main));
    gf_PreloadUnitStoryMap(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center));
    SoundLengthQueryWait();
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:34332

    gf_PreloadUnitStoryMap(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Left));
    gf_PreloadUnitStoryMap(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Right));
    SoundLengthQueryWait();
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:34367

    libNtve_gf_CinematicMode(true, PlayerGroupAll(), c_transitionDurationImmediate);
    gf_SetAllSoundChannelVolumesStoryMode(libNtve_ge_VolumeChannelMode_Cinematic);
    SoundLengthQueryWait();
    TriggerExecute(gt_ABChoiceTValerian02Preload, true, true);
    gf_GoToRoom(ge_RoomID_RoomChar, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:34701

    gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorTychus));
    ConversationDataPreloadLines("ScriptedScenesChar");
    SoundLengthQueryWait();
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:35420

    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryMusic, "THorner01MusicDebriefB", c_soundtrackCueAny, c_soundtrackIndexAny, false);
    SoundLengthQuery(SoundLink("DebriefsConfederateAdjutant00050", 0));
    SoundLengthQueryWait();
    ConversationDataRegisterUnit("Characters|CharRaynor", gf_ActorUnit(ge_ActorID_ActorRaynor));
    ConversationDataRegisterUnit("Characters|CharConfederateAdjutant", gf_ActorUnit(ge_ActorID_ActorAdjutantConfederate));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:35668

    SoundLengthQuery(SoundLink("DebriefsArcturus00045", 0));
    SoundLengthQuery(SoundLink("DebriefsArcturus00046", 0));
    SoundLengthQueryWait();
    ConversationDataRegisterUnit("Characters|CharRaynor", gf_ActorUnit(ge_ActorID_ActorRaynor));
    ConversationDataRegisterUnit("Characters|CharFlashbackRaynor", gf_ActorUnit(ge_ActorID_ActorAdjutantConfederate));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:7715

    else {
    }
    SoundLengthQueryWait();
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:12988

    }

    SoundLengthQueryWait();
    gf_RoomScenePrepare(lp_room, ge_SceneType_Scene);
    gf_HideAllActors(false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:13903

    }

    SoundLengthQueryWait();
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:26675

        CameraApplyInfo(1, CameraInfoFromId(1030), 0.0, -1, 10, true);
        Wait(0.5, c_timeReal);
        SoundLengthQueryWait();
        CameraApplyInfo(1, CameraInfoFromId(394), (SoundLengthSync(SoundLink("CantinaTychusTychus00083", 0)) + 1.0), -1, 20, true);
        gf_MakeUnitLookAtPointWithDebugControl(gf_ActorUnit(ge_ActorID_ActorTychus), "VerySlowHeadOnly", libNtve_gf_PointWithZOffset(PointWithOffsetPolar(UnitGetPosition(gf_ActorUnit(ge_ActorID_ActorTychus)), 0.6, (UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorTychus)) - 15.0)), 0.65));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:33883

    gf_PreloadUnitStoryMap(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Main));
    gf_PreloadUnitStoryMap(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center));
    SoundLengthQueryWait();
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:34332

    gf_PreloadUnitStoryMap(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Left));
    gf_PreloadUnitStoryMap(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Right));
    SoundLengthQueryWait();
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:34367

    libNtve_gf_CinematicMode(true, PlayerGroupAll(), c_transitionDurationImmediate);
    gf_SetAllSoundChannelVolumesStoryMode(libNtve_ge_VolumeChannelMode_Cinematic);
    SoundLengthQueryWait();
    TriggerExecute(gt_ABChoiceTValerian02Preload, true, true);
    gf_GoToRoom(ge_RoomID_RoomChar, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:34701

    gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorTychus));
    ConversationDataPreloadLines("ScriptedScenesChar");
    SoundLengthQueryWait();
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:35420

    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryMusic, "THorner01MusicDebriefB", c_soundtrackCueAny, c_soundtrackIndexAny, false);
    SoundLengthQuery(SoundLink("DebriefsConfederateAdjutant00050", 0));
    SoundLengthQueryWait();
    ConversationDataRegisterUnit("Characters|CharRaynor", gf_ActorUnit(ge_ActorID_ActorRaynor));
    ConversationDataRegisterUnit("Characters|CharConfederateAdjutant", gf_ActorUnit(ge_ActorID_ActorAdjutantConfederate));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:35668

    SoundLengthQuery(SoundLink("DebriefsArcturus00045", 0));
    SoundLengthQuery(SoundLink("DebriefsArcturus00046", 0));
    SoundLengthQueryWait();
    ConversationDataRegisterUnit("Characters|CharRaynor", gf_ActorUnit(ge_ActorID_ActorRaynor));
    ConversationDataRegisterUnit("Characters|CharFlashbackRaynor", gf_ActorUnit(ge_ActorID_ActorAdjutantConfederate));

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zstoryhybrid.sc2map/MapScript.galaxy:607

    Wait(0.0625, c_timeGame);
    ConversationDataPreloadLines("zDebrief_Hybrid02");
    SoundLengthQueryWait();
    lib281DEC45_gf_ChangeRoom(lib281DEC45_ge_Rooms_StoryRoomMainSet);
    lib281DEC45_gf_ShowHideUnitAbs(false, lib281DEC45_gf_CharacterUnit("Zagara"));

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstoryhybrid.sc2mapMapScript.galaxy:607

    Wait(0.0625, c_timeGame);
    ConversationDataPreloadLines("zDebrief_Hybrid02");
    SoundLengthQueryWait();
    lib281DEC45_gf_ChangeRoom(lib281DEC45_ge_Rooms_StoryRoomMainSet);
    lib281DEC45_gf_ShowHideUnitAbs(false, lib281DEC45_gf_CharacterUnit("Zagara"));

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:3706

    lib281DEC45_gv_zSS_LastConversationSkipped = false;
    ConversationDataPreloadLines(lib281DEC45_gf_ZSS_CharacterConversation(lp_character));
    SoundLengthQueryWait();
    ConversationDataSaveNodeState(lib281DEC45_gf_ZSS_CharacterConversation(lp_character), lib281DEC45_gf_ZSS_TempConversationBank(), ("StoryConversations"));
    ConversationDataResetNodeState(lib281DEC45_gf_ZSS_CharacterConversation(lp_character));

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:3861

    }
    ConversationDataPreloadLines(lp_conversation);
    SoundLengthQueryWait();
    if ((lp_fade == true)) {
        libSwaC_gf_CinematicFade(true, 0.0, Color(0.00, 0.00, 0.00), true);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:3118

    libVCST_gv_pS_LastConversationSkipped = false;
    ConversationDataPreloadLines(libVCST_gf_PS_ClickableConversation(lp_clickable));
    SoundLengthQueryWait();
    libVCST_gv_pS_ConvoActive = true;
    libVCST_gf_PS_ConversationSnapshotStart(libVCST_gf_PS_ClickableConversation(lp_clickable));

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:3217

    libVCST_gf_SetBackgroundConversationViewMode(true);
    libVoiC_gf_CinematicFade(false, 0.0, Color(0.00, 0.00, 0.00), true);
    SoundLengthQueryWait();
    libVoiC_gf_CinematicFade(true, 0.0, Color(0.00, 0.00, 0.00), true);
    lv_skipMode = lp_skipping;

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1723

    PlanetPanelSetBackgroundImage(PlayerGroupAll(), "Assets\\Textures\\ui_planetpanel_frame_backdrop_space.dds");
    ConversationDataPreloadLines("pPitch_Epilogue02");
    SoundLengthQueryWait();
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypePlanetPanel, true);
    libVoiC_gf_CinematicFade(true, 0.2, Color(0.00, 0.00, 0.00), true);

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:2698

    libNCST_gv_nS_LastConversationSkipped = false;
    ConversationDataPreloadLines(libNCST_gf_NS_ClickableConversation(lp_clickable));
    SoundLengthQueryWait();
    libNCST_gv_nS_ConvoActive = true;
    libNCST_gf_NS_ConversationSnapshotStart(libNCST_gf_NS_ClickableConversation(lp_clickable));

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:2790

    libNCST_gf_SetBackgroundConversationViewMode(true);
    libComC_gf_CinematicFade(false, 0.0, Color(0.00, 0.00, 0.00), true);
    SoundLengthQueryWait();
    libComC_gf_CinematicFade(true, 0.0, Color(0.00, 0.00, 0.00), true);
    lv_skipMode = lp_skipping;