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
Music during note
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#11
RE: Music during note

Would you happen to know that specific command? A quick scan of the engine scripts hasn't turned up anything.

03-15-2012, 12:55 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#12
RE: Music during note

(03-15-2012, 12:55 AM)Damascus Wrote: Would you happen to know that specific command? A quick scan of the engine scripts hasn't turned up anything.

Select the diary in the level editor and under the Entity tab, type in the name of the diary callback.

Tutorials: From Noob to Pro
03-15-2012, 01:08 AM
Website Find
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#13
RE: Music during note

I put the function "NoteMusic" under the PlayerInteractCallback tab, and then used the following script:

void NoteMusic(string &in asEntity)
{
PlayMusic("01_paper_self", false, 1, 1, 1, true);
}

The music plays, but it doesn't stop when the note is closed. I may leave it as is, though, as the song is fairly short.

03-15-2012, 01:53 AM
Find




Users browsing this thread: 1 Guest(s)