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
Unexpected Token
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#15
RE: Unexpected Token

Well, you have added it to the collision event with the Sound_7 routine.

This means that it won't happen unless you cause the Sound_7 routine to begin, which apparently does not happen at all, because when the player collides with SoundArea_7, it runs Sound_5 instead.

Check your OnStart() code again, and just fix that up. If you want to as well, unless it affects your code, take the two AddEntityCollideCallbacks in the Sound_7 and add them to OnStart(), like this:

PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player", "SoundArea_1", "Sound_1", true, 1);
AddEntityCollideCallback("Player", "fallarea", "fall", true, 1);
AddEntityCollideCallback("Player", "SoundArea_2", "Sound_2", true, 1);
AddEntityCollideCallback("Player", "SoundArea_3", "Sound_3", true, 1);
AddEntityCollideCallback("Player", "SoundArea_4", "Sound_4", true, 1);
AddEntityCollideCallback("Player", "SoundArea_5", "Sound_5", true, 1);
AddEntityCollideCallback("Player", "SoundArea_6", "Sound_5", true, 1);
AddEntityCollideCallback("Player", "SoundArea_7", "Sound_5", true, 1);
AddUseItemCallback("", "Key", "Door", "UsedKeyonDoor", true);
AddEntityCollideCallback("Player", "AreaCollide", "EventCollide", true, 1);
AddEntityCollideCallback("Player", "AreaCollide_2", "EventCollide", true, 1);  //Note: This will run EventCollide again.
} 

Your second last block of code (above) is missing a void as well. I assume that this is the one you have fixed as well.

Also, for the sake of scrolling, just as a general tip, enclose your code in a spoiler tag.

[spoiler]Insert Code Here[/spoiler]

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 05-31-2014, 01:37 PM by Romulator.)
05-31-2014, 01:30 PM
Find


Messages In This Thread
Unexpected Token - by Aglowglint11 - 05-29-2014, 08:35 PM
RE: Unexpected Token - by Daemian - 05-29-2014, 08:56 PM
RE: Unexpected Token - by DnALANGE - 05-31-2014, 01:46 AM
RE: Unexpected Token - by Aglowglint11 - 05-29-2014, 09:06 PM
RE: Unexpected Token - by Aglowglint11 - 05-29-2014, 10:42 PM
RE: Unexpected Token - by Neelke - 05-29-2014, 10:55 PM
RE: Unexpected Token - by Aglowglint11 - 05-30-2014, 07:51 PM
RE: Unexpected Token - by Straxedix - 05-30-2014, 07:55 PM
RE: Unexpected Token - by Neelke - 05-30-2014, 08:58 PM
RE: Unexpected Token - by Aglowglint11 - 05-31-2014, 01:30 AM
RE: Unexpected Token - by Daemian - 05-31-2014, 02:48 AM
RE: Unexpected Token - by Aglowglint11 - 05-31-2014, 12:45 PM
RE: Unexpected Token - by Romulator - 05-31-2014, 01:07 PM
RE: Unexpected Token - by Aglowglint11 - 05-31-2014, 01:13 PM
RE: Unexpected Token - by Romulator - 05-31-2014, 01:30 PM
RE: Unexpected Token - by Aglowglint11 - 05-31-2014, 01:40 PM
RE: Unexpected Token - by Romulator - 05-31-2014, 01:43 PM
RE: Unexpected Token - by Aglowglint11 - 05-31-2014, 01:45 PM



Users browsing this thread: 1 Guest(s)