revan1141 Posted June 8, 2015 This is my first time playing with Ambient Sounds and SNDINFO, and I'm having a problem with an alarm sound. This is my SNDINFODSALARM 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? 0 Quote Share this post Link to post
revan1141 Posted June 8, 2015 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. 0 Quote Share this post Link to post
scifista42 Posted June 8, 2015 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. 0 Quote Share this post Link to post
revan1141 Posted June 8, 2015 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. 0 Quote Share this post Link to post
MTrop Posted June 9, 2015 You can also adjust $rolloff parameters for the sound to affect at what distances it gets attenuated. See http://zdoom.org/wiki/SNDINFO. 0 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.