|
Post by danisimsbr on Nov 27, 2021 9:38:00 GMT -5
I wanted to create an object with custom sound. So I found Necrodog's tutorial, which is amazing.
I followed everything and it's working fine. The only problem is that it doesn't play the full audio. My audio has about 30 seconds, and it only plays half of it.
Does anyone have any expenrience with it? I wanted it to play the full audio, but I don't know if that's possible.
I was wondering if it happens because we use the "ageup" as a base, and it ends up playing for the same amount of time. I don't know. Does anyone have any idea?
Thanks.
------------- PS: I think I understood the problem. When you make the sim check the object (which makes it play the sound), if the sim stops the action of watching the object the audio also stops. I just don't know if there's a way of solving it. Maybe if there was a way of playing the audio like a radio station, instead of being a sim interaction. Or at least making the time the sim is watching the object longer.
|
|
|
Post by mercuryfoam on Nov 27, 2021 17:46:08 GMT -5
Hi. Try adding this line in your tuning or change true to false.
<T n="stop_audio_on_end">False</T>
<L n="basic_extras"> <V t="audio_sting"> <U n="audio_sting"> <U n="audio_sting"> <T n="audio">39b2aa4a:00000000:4E4BDDAE55D52896</T> </U> <T n="stop_audio_on_end">False</T> <V n="timing" t="at_beginning" /> </U> </V>
|
|
|
Post by danisimsbr on Nov 28, 2021 8:06:39 GMT -5
Hi. Try adding this line in your tuning or change true to false. <T n="stop_audio_on_end">False</T><L n="basic_extras"> <V t="audio_sting"> <U n="audio_sting"> <U n="audio_sting"> <T n="audio">39b2aa4a:00000000:4E4BDDAE55D52896</T> </U> <T n="stop_audio_on_end">False</T> <V n="timing" t="at_beginning" /> </U> </V> Hello! Thank you so much for taking the time to check the code. I did it yesterday, and it actually works. The only problem is that the object keeps playing the sound over and over again. Even after I deleted the object, the sound kept on playing in the game XD There should be something on the code that makes the game "understand" the audio should only be played once and stop. Or a way of creating a command/option "stop audio" on the object. I tried editing a part that says "min time/max time" to see if that could be it (I changed it to the number of seconds the audio has), but it didn't work either.
|
|