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 Error with sound script
Darkfire Offline
Senior Member

Posts: 371
Threads: 22
Joined: May 2014
Reputation: 15
#2
RE: Error with sound script

void ScarySound1(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);

You don't put the code in the name of the function. It normally would be
void ScarySound1()
{

}

But since this func is after AddEntityCollideCallback, it will look like

void ScarySound1(string &in asParent, string &in asChild, int alState)
{

}

Otherwise, I think it's correct. Watch some tutorials to get the hang of scripting.

(This post was last modified: 03-14-2015, 02:16 PM by Darkfire.)
03-13-2015, 10:30 PM
Find


Messages In This Thread
Error with sound script - by MaksoPL - 03-13-2015, 09:47 PM
RE: Error with sound script - by Darkfire - 03-13-2015, 10:30 PM
RE: Error with sound script - by Neelke - 03-13-2015, 10:33 PM



Users browsing this thread: 1 Guest(s)