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 Make a sound play when you pick up a note
ApeCake Offline
Member

Posts: 116
Threads: 20
Joined: Jun 2012
Reputation: 4
#3
RE: Make a sound play when you pick up a note

Or you can do it this way (I prefer this one):

Go to the "entity" tab of the note (in the level editor), in "PlayerInteractCallback" write something (in this case I will write playnotesound). Put this in your .hps.


void playnotesound(string &in entity)
{
//put your sound here, example below
PlayGuiSound("react_scare", 1.0f);
}

It basically the same as Ongkas one, but I prefer this way because you don't need void OnStart.
(This post was last modified: 07-21-2012, 07:25 PM by ApeCake.)
07-21-2012, 07:24 PM
Find


Messages In This Thread
RE: Make a sound play when you pick up a note - by ApeCake - 07-21-2012, 07:24 PM



Users browsing this thread: 1 Guest(s)