Jump to content



Photo
- - - - -

Stopping music on drained ball... (Pup Pack)


  • Please log in to reply
No replies to this topic

#1 tabascoman77

tabascoman77

    Enthusiast

  • Silver Supporter
  • 211 posts
  • Location:San Jose, CA

  • Flag: United States of America

  • Favorite Pinball: Twilight Zone, Tron Legacy, Black Hole, Elvira & the Party Monsters

Posted 21 November 2021 - 12:57 PM

Trying to code a table and I have tried to get music tracks to stop upon a drained ball so the audio for the post-turn bonus can be heard. I just can't figure out the coding.

 

This is utilizing PUP, so I have the following code:

 

if HasPup Then
                        PuPlayer.playlistplayex pVids,"DMDSplash","videoname.mp4",videovolume,1
                        PuPlayer.playlistplayex pMusic,"topper","songname.mp3",videovolume,1

 

 

That code works perfectly and activates the quick clip and music track -- but when you drain, the music track keeps playing and won't stop and will keep playing if another music track starts.

 

There is an EndMode sub programmed but I can't find the code necessary to stop the music and there doesn't appear to be code in Ball Drain sub either.

 

I've tried to code certain things myself but I'm clueless as hell and nothing works.

 

Can anyone help me out?


Edited by tabascoman77, 21 November 2021 - 01:02 PM.

Custom build: Windows 10, i5 6600, Nvidia GTX 970, 16 GB RAM