Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
One Doomed Bunny

How do I play a sound?

Recommended Posts

So, long story short I am making a doom wad that is kinda like Duke Nukem with a bunch of one-liners.

Now, what I want to do is when a player crosses a line(def), the game plays a sound of the main charachter saying something.

And yes I already searched for this so much but I just cant find anything and I am also a newbie to Doom editing in general.

 

I am using GZDoom builder in zdoom (hexen format).

 

Any help would be appriciated!

 

Thanks!

 

Share this post


Link to post

You'll need to learn some ACS, so that you can set up a script that calls the PlaySound() function and then make your linedef invoke that script.

 

Share this post


Link to post
On 17. 11. 2017 at 6:06 PM, grommile said:

You'll need to learn some ACS, so that you can set up a script that calls the PlaySound() function and then make your linedef invoke that script.

 

Sorry it took me so long to reply.

 

I actually figured it out myself but thanks anyways!

 

#include "zcommon.acs"

 

Script 1 (VOID)
{
   AmbientSound("sound/sound", 127);
}

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×