Jump to content

Recommended Posts

Posted (edited)

Hey first time posting, thanks for reading.

So long time ago, someone helped me add a coin option for the munsters 2020 table, works great. Now that I'm planning on building a second Munsters cab, I have copied the vr room script for the regular table in order to get rid of the bonus bug, and also added the coin option as well, all works fine. I just want to make it more realistic by adding a coin drop sound. Heres the code for the coin setting after adding the variable of course

            If(BallsOnPlayfield = 0) Then
               Credits = Credits - 1
               ResetForNewGame()
            End If
        End If
            if keycode = AddCreditKey then
            if Credits < 10 then
               Credits = Credits + 1
               PlaySound "fx_coin"

I have tried to modify the code to say fx_coin.mp3 and added a sound file but that doesn't work. i think the pup pack its the one that handles all the sounds, so I'm a bit lost in here. Can someone please help, thanks a lot.

 

 

 

EDIT: Im gonna answer my self, just add this code 

End If
            if keycode = AddCreditKey then
            if Credits < 10 then
               Credits = Credits + 1
               PUP_audioevents "fx_coin.mp3"

Insert the audio file named fx_coin.mp3 to the folder audioevents on the pup pack, and I got coindrop sound. 

Edited by Clayton.Sonny

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
×
  • Create New...