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
problems with sound script (solved)
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#2
RE: problems with sound script

void OnStart()
{
AddEntityCollideCallback("Player", "Music_1", "start", true, 1);
}

void start(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "amd_idle03.ogg", "Player", 0, false);
}

So the problem may be that you wrote player, it must be Player in the AddEntityCollideCallback

and usually the error says where in the script the error is

(This post was last modified: 05-20-2012, 09:37 PM by SilentStriker.)
05-20-2012, 09:37 PM
Find


Messages In This Thread
problems with sound script (solved) - by Nice - 05-20-2012, 09:27 PM
RE: problems with sound script - by SilentStriker - 05-20-2012, 09:37 PM
RE: problems with sound script - by Nice - 05-20-2012, 09:44 PM
RE: problems with sound script - by SilentStriker - 05-20-2012, 09:50 PM
RE: problems with sound script - by Nice - 05-20-2012, 09:52 PM
RE: problems with sound script - by SilentStriker - 05-20-2012, 10:03 PM
RE: problems with sound script - by Nice - 05-20-2012, 10:05 PM
RE: problems with sound script - by SilentStriker - 05-21-2012, 06:45 AM
RE: problems with sound script - by Adny - 05-20-2012, 10:23 PM



Users browsing this thread: 2 Guest(s)