Opening document…

The interface could not load. You can still read below. Retry

Sequence Containers: Play Sounds in Order

This tutorial divides a reload into three stages: magazine removal, magazine insertion, and bolt pull. A Sequence Container plays these sounds in a specified order.

Before you start: Open the Container_Tutorial project created in the Random Container tutorial and continue using the Container_Examples Layer.

image.png
image.png

If you haven’t read the first tutorial in this series, we strongly recommend starting with Random Containers: Add Variety to Your Sounds. Follow that tutorial to set up the Container_Tutorial project, then come back for the Sequence Container exercises.

2.1 Import the Reload Sounds#

  1. Click this section’s audio download link to download the reload sound archive.

    Sequence Container.zip

  2. Extract the downloaded archive and open the extracted folder in Windows File Explorer. It contains the following WAV files:

    image.png

    Stage

    Filename

    Magazine removal

    Weapon_Reload_Mag_Out_01.wav, Weapon_Reload_Mag_Out_02.wav, Weapon_Reload_Mag_Out_03.wav

    Magazine insertion

    Weapon_Reload_Mag_In_01.wav, Weapon_Reload_Mag_In_02.wav, Weapon_Reload_Mag_In_03.wav

    Bolt pull

    Weapon_Reload_BoltPull_01.wav, Weapon_Reload_BoltPull_02.wav, Weapon_Reload_BoltPull_03.wav

  3. Select all nine WAV files and drag them together onto Container_Examples Layer in Studio.

    image.png

    After import, the corresponding Sounds appear in Explorer.

    image.png

  4. In Explorer, click to select each Sound and click the Play button at the top to audition it.

    image.png

    Let each sound finish before playing the next one. Listen for how the three reload stages sound different.

  5. After auditioning, press Ctrl+S to save the project.

2.2 Create a Random Container for Each Stage#

Give each stage its own Random Container. When the stage plays, its container picks one of three sounds, so repeated reloads don't always sound identical.

  1. In Explorer, select the three Sounds for magazine removal: Weapon_Reload_Mag_Out_01, Weapon_Reload_Mag_Out_02, and Weapon_Reload_Mag_Out_03.

    image.png

  2. Right-click and choose New Parent → Container. Name it Weapon_Reload_Mag_Out. The three magazine-removal Sounds become children of this Container.

    image.png
    image.png

  3. Return to Explorer, click to select Weapon_Reload_Mag_Out, and click the Play button at the top. Let the sound finish before playing it again, and repeat a few times. In Blueprint, watch which Sound gains a green border each time. Each trigger plays only one magazine-removal sound.

    Viewing Blueprint: Double-click Weapon_Reload_Mag_Out in Explorer. Blueprint centers this Container in its view so it is easy to find.

    image.png

    If Blueprint is not visible, first open it from View → Blueprint at the top of the main window.

    Open Blueprint from the View menu
  4. Similarly, group the magazine-insertion and bolt-pull Sounds into separate Random Containers named Weapon_Reload_Mag_In and Weapon_Reload_BoltPull. You now have three Random Containers, one each for magazine removal, magazine insertion, and the bolt pull.

    image.png

  5. After auditioning, press Ctrl+S to save the project.

2.3 Use a Sequence Container to Set the Stage Order#

The three stages can now select their own variations. Next, place them in one Container so the outer Container can decide which stage plays first.

  1. In Explorer, select the three Containers: Weapon_Reload_Mag_Out, Weapon_Reload_Mag_In, and Weapon_Reload_BoltPull.

    image.png

  2. Right-click and choose New Parent → Container. Name it Weapon_Reload.

    image.png
    image.png

  3. Select Weapon_Reload and find Mode under Inspector → Basic → Selection. Change it to Sequence.

    image.png

  4. Next, set the playback order of the three reload stages in Weapon_Reload. Look at the Selection Editor panel in the lower center of the main window. In the default layout, it is below Blueprint, and its title should show Weapon_Reload.

    image.png

    If this panel is not visible, or its title does not show Weapon_Reload, double-click the outer Weapon_Reload Sequence Container in Explorer on the left to open or switch to its Selection Editor.

    The Child table for Weapon_Reload lists three Random Containers, which play the sounds for magazine removal, magazine insertion, and the bolt pull, respectively. Their order from top to bottom determines the playback order of the three reload stages. To move a row, drag its number at the far left, as shown below.

    In the Selection Editor, an arrow points to row number 1, which you can drag to reorder the Child table

    Arrange the rows in this order: magazine removal → magazine insertion → bolt pull.

    Order

    Child (stage Container)

    Reload action

    1

    Weapon_Reload_Mag_Out

    Magazine removal

    2

    Weapon_Reload_Mag_In

    Magazine insertion

    3

    Weapon_Reload_BoltPull

    Bolt pull

  5. Return to Explorer on the left and click to select the outer Weapon_Reload Sequence Container.

    Since we have not changed Play Type, it is still set to the default, Single. Each click of Play therefore plays only one reload stage. After the sound finishes, click Play again to play the next stage.

    image.png

  6. Click Reset container selection (the button marked by the arrow in the image below) once at the top of the main window. This clears the Container’s playback history, so the next playback starts with the first stage, magazine removal.

    Tip: To audition a Sequence Container from the beginning again, select that Sequence Container in Explorer, click Reset container selection, then click Play.

    image.png

  7. Keep the outer Weapon_Reload selected and click the Play button at the top of the main window four times in total.

    The first three auditions check the stage order. The fourth checks whether playback returns to the first stage. Compare each audition with the following table:

    Click of Play

    Expected action

    1st

    Magazine removal: start at the first Child row

    2nd

    Magazine insertion: advance to the second row

    3rd

    Bolt pull: advance to the third row

    4th

    Magazine removal again: return to the first row after the third

    You can also watch the active stage in Blueprint and compare it with the action you hear.

    image.png
    image.png
    image.png

  8. After auditioning, press Ctrl+S to save the project.

The outer Sequence Container sets the order of the three stages. When a stage comes up, its Random Container picks one of three sounds to play.

2.4 Compare Single and Queue#

In Explorer on the left of the main window, click to select the outer Weapon_Reload Sequence Container. Then find Play Type under Inspector → Basic → Selection on the right.

image.png
image.png

The earlier auditions used Single: each click of the Play button at the top starts only one stage. To complete the reload with one click, use Queue, which plays the three stages consecutively.

  1. Change Play Type on the outer Weapon_Reload to Queue.

    image.png

  2. Return to Explorer, click to select Weapon_Reload, and click Reset container selection. Then click the Play button at the top just once and wait for all three stages of the complete reload to finish.

    image.png
    image.png

  3. Click the Play button at the top once more and wait for all three stages of the complete reload to finish. Listen for differences between the two playbacks. Notice that both play magazine removal, magazine insertion, and the bolt pull in that order, but the sound selected for each stage may differ.

    image.png

  4. After auditioning, press Ctrl+S to save the project.

Comparing the earlier auditions with these shows the difference between the two playback types:

  • Single: Each click of Play starts only one stage. For example, the first click plays magazine removal, the second plays magazine insertion, and the third plays the bolt pull. Completing the reload takes three clicks.

  • Queue: One click of Play runs magazine removal, magazine insertion, and the bolt pull consecutively in order, completing the entire reload.

2.5 Play the Complete Reload with One Action#

Playing the outer Weapon_Reload now produces the complete reload. As in the Random Container tutorial, create a playback Action for it.

  1. In Explorer, right-click Weapon_Reload and choose New Action → Play. An Action named Play_Weapon_Reload is created automatically.

    image.png
    image.png

  2. In Explorer, click to select Play_Weapon_Reload. In Inspector → Basic → Step on the right, check that Target in the Play row points to the outer Sequence Container Weapon_Reload, not to a Random Container for one of its stages. Target tells this step which object to play.

    The Play step in Play_Weapon_Reload targets Weapon_Reload
  3. Keep Play_Weapon_Reload selected and click the Play button at the top once. Listen for magazine removal, magazine insertion, and the bolt pull, in that order. If you hear all three, the Action is playing the outer container's full queue.

    image.png

  4. After auditioning, press Ctrl+S to save the project.

2.6 Use Resume From Last to Choose Where Playback Restarts#

In Explorer on the left of the main window, click to select the outer Sequence Container Weapon_Reload.

image.png

Find Resume From Last under Inspector → Basic → Selection. This option appears only when Play Type is set to Queue. If it's missing, make sure the outer container is selected, then check that Play Type is set to Queue.

Resume From Last appears below Play Type, which is set to Queue on Weapon_Reload

Resume From Last determines which stage plays first the next time you press Play after stopping a reload partway through.

  • Unchecked: Playback starts with magazine removal again, repeating the complete reload.

  • Checked: Playback restarts from the stage that was active when stopped. For example, stopping during magazine insertion makes the next playback restart insertion and then continue to the bolt pull.

Listening comparison: where does playback restart after you stop mid-reload?

Earlier, you played the three reload stages in order: magazine removal, magazine insertion, and bolt pull. Now stop during the second stage, magazine insertion, and press Play again. Does the reload start over, or does it restart from the stage where you stopped?

It's hard to time the stop by ear alone. In Blueprint at the center of the main window, make sure you can see the Weapon_Reload_Mag_In node marked by the arrow below. When its border turns green, magazine insertion has started: click Stop at the top of the main window.

image.png

Run the listening test twice, changing just one setting: leave Resume From Last unchecked the first time and check it the second time. When playback restarts, listen for the first sound: do you hear the magazine being removed or inserted?

image.png

First, leave Resume From Last unchecked

  1. In Explorer on the left of the main window, click to select the outer Weapon_Reload Sequence Container. Then leave Resume From Last unchecked under Inspector → Basic → Selection on the right.

    Weapon_Reload selected in Explorer
    image.png

  2. Make sure the Weapon_Reload_Mag_In node (magazine insertion) is visible in Blueprint. At the top of the main window, click the orange arrow (Reset container selection), then the green triangle (Play) to start with magazine removal.

    image.png
    image.png

  3. When the outline of Weapon_Reload_Mag_In turns green, click the red square (Stop) at the top.

    If the outline of Weapon_Reload_BoltPull (bolt pull) turns green, you stopped too late. Let playback finish, then go back to step 2 of this test and start again.

    image.png

  4. Once you've confirmed that you stopped during magazine insertion (Weapon_Reload_Mag_In), click Play at the top again without resetting. This time, Weapon_Reload_Mag_Out lights up first. You'll hear all three stages: magazine removal, magazine insertion, and the bolt pull.

    Weapon_Reload_Mag_Out lights up as playback starts from the first stage again

With Resume From Last unchecked, the Sequence Container starts over from the first stage, magazine removal, even though you stopped during magazine insertion.

Next, check Resume From Last

  1. In Explorer on the left of the main window, click to select the outer Weapon_Reload Sequence Container. Then check Resume From Last under Inspector → Basic → Selection on the right.

    Weapon_Reload selected in Explorer
    Resume From Last is checked on Weapon_Reload

  2. Make sure the Weapon_Reload_Mag_In node (magazine insertion) is visible in Blueprint. At the top of the main window, click the orange arrow (Reset container selection), then the green triangle (Play) to start with magazine removal.

    image.png
    image.png

  3. When the outline of Weapon_Reload_Mag_In turns green, click the red square (Stop) at the top.

    If the outline of Weapon_Reload_BoltPull (bolt pull) turns green, you stopped too late. Let playback finish, then go back to step 2 of this test and start again.

    image.png

  4. Once you've confirmed that you stopped during magazine insertion (Weapon_Reload_Mag_In), click Play at the top again without resetting. This time, Weapon_Reload_Mag_In lights up first. You'll hear magazine insertion followed by the bolt pull, without hearing magazine removal.

    image.png

Unlike in the first test, with Resume From Last checked, the Sequence Container remembers which stage was playing when you stopped. Since you stopped during magazine insertion, the next playback starts with that stage and skips magazine removal.

Restore the settings after auditioning

After playback finishes, uncheck Resume From Last under Inspector → Basic → Selection, and leave Play Type set to Queue. Press Ctrl+S to save the project.

Weapon_Reload remains set to Queue with Resume From Last unchecked

2.7 Summary: What We Have Learned#

A Sequence Container plays its children in the order listed from top to bottom in the Child table. In this tutorial, it connects magazine removal → magazine insertion → bolt pull. Each stage’s Random Container still picks a sound at random, so the reload follows the same order but can sound a little different each time.

Play Type determines how many stages play per trigger. Single plays only one stage per click of Play; clicking again advances to the next stage. Queue plays all three stages consecutively in order from a single click, completing the entire reload.

In Queue mode, Resume From Last controls where playback starts after you stop partway through. Leave it unchecked to start from the first stage, or check it to restart the stage that was playing when you stopped.