Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Ra02

Ambient Sound - How to

Recommended Posts

So I've downloaded a wav sound that I've imported to my wad trough XWE I tried to play it with script AmbientSound("ALARM1", 100); but nothing happened, how can I fix this, and how can I make it loop until canceled?

Share this post


Link to post

Define a name for the sound in SNDINFO, define an ambient sound in SNDINFO using the defined name, place the defined sound object in your map, use a script or lines to activate/deactivate the sound item.

http://zdoom.org/wiki/SNDINFO

eg

ALARM DSALARM

$ambient 1 ALARM SURROUND CONTINUOUS 1.0

Share this post


Link to post

Oh I thought it was just import / write :D ok thanks a lot, I will look at it.

Edit: Ok, so it works but it doesn't loop. How can I start the loop and how to stop it then?

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
×