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

Making Ambient Sound get quieter the farther away the player moves from it?

Recommended Posts

This is my first time playing with Ambient Sounds and SNDINFO, and I'm having a problem with an alarm sound.

This is my SNDINFO

DSALARM LOOP_ALA
$ambient 1 DSALARM point random 20.0 50.0 1.0
I then place the Ambient Sound 1 object on my map, and it works and plays the sound.

However, I would like to make it so that the farther the player moves away from this object, the quieter the sound gets... I can't seem to word my search properly to figure out how to find info on how to do this.

Any assistance please?

Share this post


Link to post

So apparently I was making the sound play via the scripts, and the ambient sound object doesn't play a sound at all...

I'm not sure what to do now.

Share this post


Link to post
scifista42 said:

I think you use wrong arguments #2 and #3 in the $ambient command (incorrect number, and not a logical sound name). Look at the syntax reference + first example here: http://zdoom.org/wiki/Ambient_sound#ZDoom and see what they should be like.


Wow that was a laughably easy fix.

 $ambient 1 DSALARM point periodic 2.0 0.7 
Works fine.

Thank you kindly.

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
×