Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

Question

Hi everyone, I have a script that play randomly audio and now i want a delay after every sound. I tried using waitforseconds function but i cant get it to work.

this is the script:

Please login or register to see this code.

Thanks

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts


  • 0
Please login or register to see this code.

Note that there are no audio blending, and there can only be played 1 sound, if sound is 2D or you can play it at specific point you can use this. This will spawn go and delete itself after audio has finished, by that blending different audio sounds.

Please login or register to see this link.

Share this post


Link to post
Share on other sites
  • 0

WaitForSeconds didn't work in CS like in JS. You must create a coroutine. It's not really hard. I include always this function in my project ++

Please login or register to see this code.

Share this post


Link to post
Share on other sites
  • 0
Please login or register to see this quote.

 

why did you wrote that ? you forget the while (true) to make it repeat and the op is obviously using js :P

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...