johnfulgor Posted January 3, 2010 Hello! Now I'd like to add some sounds to my map. Just to start, I've made some trials adding a Sound Thing in a sector, but without any luck. I've also tried 140:Sector_ChangeSound (tag, newsequence)... but I don't understand what a "newsequence" is, nor where it's located. Can anyone explain to me how can I play a sound (a pistol shot, for example) when the player acts on a switch? Thanks! 0 Share this post Link to post
Gez Posted January 3, 2010 Sector_ChangeSound changes the sound sequence attached to a sector. This is not what you want. If you just want a special sound to be played when a switch is triggered, you should make the switch use the ACS Execute function to make it run a script, and in this script, you'll use a function such as SectorSound or ThingSound. Alternatively, you may make a switch texture unique to this place (just the name needs to be different) and give it a sound in ANIMDEFS. It's a hacky method, unless you actually want to change the "switch activated" sound of course. 0 Share this post Link to post
maggot202 Posted January 5, 2010 This tutorial explains how to work with sounds in (g)zdoom. I hope it helps you as it helped me some time ago. 0 Share this post Link to post