Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Triggering "stopmusic"
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Triggering "stopmusic"

PlayMusic and StopMusic work together using a priority value. According to the script, the priority is defined at the second last argument:

PHP Code: (Select All)
void PlayMusic(stringasMusicFilebool abLoopfloat afVolumefloat afFadeTimeint alPriobool abResume); 

What the priority does is tell the game which track to play (or stop). Only 1 track can play at a time, and that will be the one with the highest priority value. To stop a track, you input the exact same priority as defined in the track you want to stop.

Your "Edgar.ogg" track has priority 1.

Use StopMusic with that priority to stop it.

PHP Code: (Select All)
void StopMusic(float afFadeTimeint alPrio); 

05-25-2015, 05:34 AM
Find


Messages In This Thread
Triggering "stopmusic" - by bestia455 - 05-25-2015, 04:31 AM
RE: Triggering "stopmusic" - by Mudbill - 05-25-2015, 05:34 AM
RE: Triggering "stopmusic" - by bestia455 - 05-25-2015, 03:21 PM
RE: Triggering "stopmusic" - by Slanderous - 05-25-2015, 06:33 PM
RE: Triggering "stopmusic" - by bestia455 - 05-25-2015, 08:12 PM
RE: Triggering "stopmusic" - by Slanderous - 05-25-2015, 09:25 PM
RE: Triggering "stopmusic" - by Mudbill - 05-26-2015, 01:16 AM
RE: Triggering "stopmusic" - by Daemian - 05-25-2015, 09:42 PM
RE: Triggering "stopmusic" - by Slanderous - 05-25-2015, 11:13 PM



Users browsing this thread: 1 Guest(s)