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
Sound playing when reading a note.
Mackiiboy Offline
Member

Posts: 101
Threads: 7
Joined: Jan 2012
Reputation: 11
#2
RE: Sound playing when reading a note.

(07-02-2012, 09:08 PM)ZyLogicX Wrote: I have been trying to get examples from the main game, but it doesn't give me any direction where to go.
How would I approach said script?
.
Select your note in the level editor and open the Entity menu to the right. Put in PickNote_01 at the CallbackFunc-box and save.

[Image: vuIJE.png]

Use this function in your hps script file and choose which music you want to play:

void PickNote_01(string &in entity, string &in type)
{
PlayMusic("nameofyourmusicfile.ogg", false, 0.7f, 0, 10, false);
}
07-02-2012, 09:23 PM
Website Find


Messages In This Thread
Sound playing when reading a note. - by ZyLogicX - 07-02-2012, 09:08 PM
RE: Sound playing when reading a note. - by Mackiiboy - 07-02-2012, 09:23 PM



Users browsing this thread: 1 Guest(s)