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
StrartMusic Work But not Stop
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#3
RE: StrartMusic Work But not Stop

(02-27-2012, 07:07 PM)SilentStriker Wrote: If you start the music on one map then you need to have StopMusic OnLeave on the map you started the music

And the music is on Prio 0 then you need to have Prio 0 on StopMusic too
So like this


void OnStart()
{
AddEntityCollideCallback("Player", "MusicStop", "StopMusic", true, 1);
}


void StopMusic(string &in asParent, string &in asChild, int alState)
{
StopMusic(1 , 0);
}

void OnLeave()
{
}

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
02-27-2012, 07:14 PM
Website Find


Messages In This Thread
StrartMusic Work But not Stop - by jessehmusic - 02-27-2012, 06:59 PM
RE: StrartMusic Work But not Stop - by jessehmusic - 02-27-2012, 07:14 PM
RE: StrartMusic Work But not Stop - by Mackiiboy - 02-28-2012, 06:44 AM



Users browsing this thread: 2 Guest(s)