Jade_Monkey Posted December 3, 2015 Posted December 3, 2015 Hi everyone, I had a nice idea for a mission but im a little stuck. It involves playing one or two audio files more than once. I havent had any luck with this so far. I tried looping the MCUs and also creating many MCUs that use the same audio file. So far none seem to work after playing each audio file once. Has someone had any luck with this? Or is it a limitation of the game engine/ME? Thanks in advance
JimTM Posted December 3, 2015 Posted December 3, 2015 Hi Jade_Monkey, Here's a design that should work for you: ------>------0s (timer)------>------Play Sound (media translator) | | V | | Wait-------------->------Stop Media (media translator) for Sound (timer) Once the sound finishes, you should be able to retrigger the logic above. Set "Wait for Sound" timer to slightly more than the length of your sound. Set the media type for "Stop Media" to...Stop Media! :-) FYI, during my testing, I discovered that the "OnMediaStopped" event message from the media translator was not being generated when the media stopped, so that precluded another design that I had.
Jade_Monkey Posted December 3, 2015 Author Posted December 3, 2015 Hi Jade_Monkey, Here's a design that should work for you: ------>------0s (timer)------>------Play Sound (media translator) | | V | | Wait-------------->------Stop Media (media translator) for Sound (timer) Once the sound finishes, you should be able to retrigger the logic above. Set "Wait for Sound" timer to slightly more than the length of your sound. Set the media type for "Stop Media" to...Stop Media! :-) FYI, during my testing, I discovered that the "OnMediaStopped" event message from the media translator was not being generated when the media stopped, so that precluded another design that I had. Thank you! I'll test tonight. Yes i noticed that the event doesnt work, at least the way i hoped. Thanks again!
JimTM Posted December 3, 2015 Posted December 3, 2015 (edited) Here's a revised design that eliminates the need to wait for the sound before re-triggering: ------>------0s (timer)------>------Stop Media (media translator) | | V | | 2s-------------->---------Play Sound (media translator) (timer) I just flipped the media translators and changed the wait timer to a 2s timer. If you re-trigger before your sound finishes, it is cut off and replayed. Note: The "Stop Media" translator in both designs will stop ALL running media in the mission. Edited February 14, 2016 by JimTM
Jade_Monkey Posted December 3, 2015 Author Posted December 3, 2015 Thanks again! The stop media did the trick.
TP_Jacko Posted December 4, 2015 Posted December 4, 2015 I hope to one day surprise my squad mates with a recoding of my voice barking out commands in a poor German or Russian accent in a mission I made
JimTM Posted December 4, 2015 Posted December 4, 2015 (edited) I hope to one day surprise my squad mates with a recoding of my voice barking out commands in a poor German or Russian accent in a mission I made Or just barking. Now where is that "dogs barking in village" file? Edited December 4, 2015 by JimTM
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now