Jump to content

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

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...