[Question] Vehicle Sounds

I successfully imported a vehicle and i got it moving. Now how can i add engine sounds like idle, running etc? Is there a place where i can simply assign the sounds or do i have to make them in Blueprints by myself?

Hi Satheesh,

You should be able to simply drag your SoundCues into your Blueprint from your content browser to create Play nodes, then place them to execute in different states. You can then modify additional properties, like oscillate for giving your vehicle louder “revving” when accelerating. Is there something in particular that you are trying to accomplish with sounds in a vehicle that I could get you a more specific answer to?

Cheers,

Alexander

Hi Alex,

Dragging and dropping SoundCues or SoundWaves from Content Browser to Blueprints creates Add AudioComponent node instead of Play node. Anyway…pardon me but execution in different states is something that i dont understand. Let me explain…

I have EngineStart, EngineOff, EngineRev, EngineRunLoop, EngineIdle. Now i can play these sounds in Blueprint but i dont know how to play based on speed or gear. For example i have different engine sounds based on gear. So how can i tell Blueprint to play Gear1 sound when the vehicle starts moving and play rest of the gear sounds in order as it speeds up. If you played Need For Speed games you’ll know what i mean. :slight_smile:

I have attached the vehicle sounds in-case you want to quickly check in BP.

You are correct that it will create an Add AudioComponent node if dragged into the EventGraph. I should have clarified, you can drag the SoundCues into your Components and then in the EventGraph add a play node by dragging off of the sound cue’s getter.

You can create Custom Events that are set to trigger when the vehicle gets to certain speeds. When movement is ‘0’ you can have it trigger “CE_Idle”, then that can execute Stop and Play nodes for the audio. As it reaches higher speeds you could have it trigger Custom Events designated for playing gear shifting cues.

More information on custom events can be found here:
https://rocket.unrealengine.com/docs/ue4/INT/Gameplay/Blueprints/UserGuide/Events/Custom/index.html

I hope this helps you with getting your sounds working for your Vehicle Blueprint. Please let me know if there is anything else that I can help you with.

Cheers,

Alexander

Thanks Alex. I was already using Custom Events but i thought there will be an easy way. Here is the result: http://forums.epicgames.com/threads/977737-Unreal-Engine-4-Vehicle-Sounds-Key-Prompt-Blueprint-Only

[Vehicle Sound Tutorial][1]

[1]: