Question

Is there a limit for how many questions one can ask? ;-D

1. I wonder how to make a sound that is played periodically on a mapspot?

2. How do i make the sound play periodically that can be heard over the whole map?

Thank you!

Share this post


Link to post

4 answers to this question

  • 0

No limit as far as I know.

 

1. You need to set up a MapSpot and use a script to do PlaySound with the loop parameter set. https://zdoom.org/wiki/PlaySound

2. You need to set up a MapSpot and use a script to do AmbientSound in an actual loop (like while(TRUE)) with a delay of the length of the sound so that it loops. https://zdoom.org/wiki/AmbientSound

Edited by Nevander

Share this post


Link to post
  • 0

Another option: Design an actor that plays the sound at different instances using state jumps rather than a script.

Edited by jdagenet

Share this post


Link to post
  • 0
21 hours ago, Nevander said:

No limit as far as I know.

 

1. You need to set up a MapSpot and use a script to do PlaySound with the loop parameter set. https://zdoom.org/wiki/PlaySound

2. You need to set up a MapSpot and use a script to do AmbientSound in an actual loop (like while(TRUE)) with a delay of the length of the sound so that it loops. https://zdoom.org/wiki/AmbientSound

Remember to add the SNDINFO lump in the map for the AmbientSound :p

Share this post


Link to post
  • 0

I have over 90 ambient sounds in my map. Doesn't appear like there is a limit

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.


Sign In Now