Producing sounds through Kismet
In this recipe we'll introduce actions that allow you to accompany events with sounds when an actor picks up objects in the scene.
Getting ready
Open Packt_04_PlaySound_Start.UDK or continue from where you were in the last recipe if you completed it. In this map the Bot handling is already set up, from previous recipes.
How to do it...
In the map are four glowing white spheres. At present when you pick them up they just vanish. Let's provide some feedback to the player in the form of a sound too. Locate in the Kismet the event called Trigger_0 Touch. In some clear space that's near, hold D and click to add a Delay. Hook the Touched nub of the Trigger_0 Touch event to the Start nub of the Delay. Set the Delay action's Duration to 0.25.
- In the Content Browser, locate PacktWavs.Cue.one_Cue. This is a SoundCue asset that uses an imported .WAV file. Press Space to preview it. With this highlighted, in Kismet hold S and click to add a Play Sound node. In the node's...