Firstly, I’m fairly new to Fmod, so apologies if this is old ground. I did try to search the forum for a solution to my problem but couldn’t quite track it down.
All I am trying to do is generate a sound def that does not loop, but does retrigger once you have left and re-entered the the emitters set distance area. I’m just trying to recreate the act of opening and closing a door. I can get my def to loop or play once, but obviously neither are realistic.
I’m sure I’m just overlooking something obvious, but hours of trial and error and google searching have left me none the wiser.
- schemo asked 3 years ago
Typically the behaviour and triggering of an open and/or close sound would be done by the game engine, to assure that it is in perfect sync with animation.
That being said, you can definitely trigger your door sound at a certain distance. All you need is to add a distance parameter, and and paste your sound instance along that parameter at whichever distance you want it triggered. For example if you want the sound to fire when you’re within 5 game units, have your sound instance span from 0 to 5. You could then do the same and play a close sound when you step beyond 5 game units. If you play the event and slide your distance param back and forth you should get open/close sounds based on distance.
You’ll want to make sure in the instance’s properties that it is set to one-shot, so the door sound doesn’t keep looping.
Please login first to submit.