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 Script error
Shadowfied Offline
Senior Member

Posts: 261
Threads: 34
Joined: Jul 2010
Reputation: 5
#9
RE: Script error

(01-30-2012, 11:17 AM)flamez3 Wrote: You are not naming things right. Use this:


void OnStart()
{
AddEntityCollideCallback("Player", "Get_to_work_Area", "GetFirst_Quest", true, 1);
AddEntityCollideCallback("Player", "Get_to_Work_complete_Area", "FinishFirst_Quest", true, 1);
}
void GetFirst_Quest(string &in asParent, string &in asChild, int alState)
{
AddQuest("get_to_workquest", "Get_To_Work");
}
void FinishFirst_Quest(string &in asParent, string &in asChild, int alState)
{
CompleteQuest("get_to_workquest", "Get_To_Work");
}

Use that and then look at the differences between your script and the modified script and figure out why your's didn't work.
Are you saying there were more errors than the two missing parenthesis?


Current - Castle Darkuan
Other - F*cked Map
01-30-2012, 11:48 AM
Find


Messages In This Thread
Script error - by Saren - 01-30-2012, 10:55 AM
RE: Script error - by Tripication - 01-30-2012, 10:56 AM
RE: Script error - by Saren - 01-30-2012, 11:03 AM
RE: Script error - by flamez3 - 01-30-2012, 11:04 AM
RE: Script error - by Saren - 01-30-2012, 11:09 AM
RE: Script error - by Tripication - 01-30-2012, 11:13 AM
RE: Script error - by flamez3 - 01-30-2012, 11:17 AM
RE: Script error - by Shadowfied - 01-30-2012, 11:48 AM
RE: Script error - by Saren - 01-30-2012, 11:21 AM
RE: Script error - by flamez3 - 01-30-2012, 11:51 AM
RE: Script error - by Shadowfied - 01-30-2012, 11:54 AM
RE: Script error - by Saren - 01-30-2012, 12:03 PM



Users browsing this thread: 1 Guest(s)