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
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#8
RE: Make a sound play when you pick up a note

For the second one, make sure you used "CallbackFunc".
and at

void playnotesound(string &in Entity, string& in type)

string& in type is wrong, use this: string &in type

Also, why use 2 callbacks for 2 different functions, when it's the same entity? Doesn't make sense, and is probably why it doesn't work. If you ment to do that, I suggest using CallbackFunc to call a single function which has both the grunt activation and the sound.

And if that still doesn't work, try adding this inside your called function:
if(type == "OnPickup")
{
//stuff to do
}

Think, before you speak Google, before you post
(This post was last modified: 07-23-2012, 09:22 PM by Cruzore.)
07-23-2012, 09:09 PM
Find


Messages In This Thread
RE: Make a sound play when you pick up a note - by Cruzore - 07-23-2012, 09:09 PM



Users browsing this thread: 1 Guest(s)