Hello I am trying to make a sound play when a gear changes (automatic)
I have been looking for 3 hours for help and didn’t find anything
Any Help is apreciatted
hi,
are you using metasound or soundcue ?
when your function switches gears i expect it has something like RPM >= ShiftUpRPM and then CurrentGear++ or visa versa
If you like to play a Gearbox sound you could make it a oneshot Play Sound at Location | Unreal Engine Documentation
and play it when CurrentGear changes.
hope this helps you ![]()
cheers ![]()
i am using a sound cue
i actually don’t have a function the gears switch automaticaly when i drive and here is where i am stuck because there is no code i can edit.
are you using chaos vehicles ?
you could Get Current Gear save it value and check if it changes. there are also a few other ways to set / get gears
i am using the physx vehicles but this sound like this would work.
Can you show how to do that with nodes please?
poll Get Current Gear from the vehicle movement each tick, store last gear, when it changes fire your shift sound there. a oneshot at location works fine for the thunk; if you move the engine to metasound later, expose a trigger input and fire it on the same gear-change event so it stays inside the graph.
that trigger call is one node in Expose MetaSound Parameters To Blueprint, a MetaSound parameter plugin for Unreal Engine 5: Expose MetaSound Parameters To Blueprint. on sale ($10.36).