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


Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help - Play Music when I touch an object
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#14
RE: Help - Play Music when I touch an object

Oh, I see. Then, do this:

void Touch(string &in asEntity)



{

PlayMusic("music.ogg", false, 1, 0.1, 1, false);

AddTimer("", 7, "Replay");

}

void Replay (string &in asTimer)
{
PlayMusic("yourlevelmusic.ogg", true, 1, 1, 1, true);
}

That will make the music play, and, in 7 seconds, it will resume your level song. I think this should fix you error now Wink

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
07-12-2013, 12:45 PM
Find


Messages In This Thread
RE: Help - Play Music when I touch an object - by The chaser - 07-12-2013, 12:45 PM



Users browsing this thread: 1 Guest(s)