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
Error Unexpected End of File
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Error Unexpected End of File

Try that :3

PHP Code: (Select All)
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player""SoundArea_1""Sound_1"True1);
AddEntityCollideCallback("Player""fallarea""fall"True1);
AddEntityCollideCallback("Player""SoundArea_2""Sound_2"True1);
AddEntityCollideCallback("Player""SoundArea_3""Sound_3"True1);
AddUseItemCallback("""Stairs_Key""Stairs_Downstairs""UsedKeyonDoor"true);

void fall(string &in asParentstring &in asChildint alState)
{
    
SetEntityActive("2"True);
    
SetEntityActive("3"True);
    
SetEntityActive("4"True);
    
SetEntityActive("5"True);
    
SetEntityActive("6"True);
}

void Sound_1(string &in asParentstring &in asChildint alState
{
    
PlaySoundAtEntity("""react_breath1.ogg""Player"0False);
    
react_breath1.ogg
}

void UsedKeyonDoor(string &in asItemstring &in asEntity)
{
    
SetSwingDoorLocked("Stairs_Downstairs"falsetrue);
    
PlaySoundAtEntity("""unlock_door""Stairs_Downstairs"0false);
    
RemoveItem("Stairs_Key");
}

void Sound_2(string &in asParentstring &in asChildint alState
{
    
PlaySoundAtEntity("""general_thunder1.ogg""Player"0False);    
}

void Sound_3(string &in asParentstring &in asChildint alState
{
    
PlaySoundAtEntity("""amb_idle_whimp01.ogg""Player"0False);


Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 03-08-2014, 01:34 AM by Romulator.)
03-08-2014, 01:33 AM
Find


Messages In This Thread
Error Unexpected End of File - by Aglowglint11 - 03-07-2014, 11:43 PM
RE: Error Unexpected End of File - by Romulator - 03-08-2014, 01:33 AM
RE: Error Unexpected End of File - by Urkle - 03-08-2014, 03:39 AM
RE: Error Unexpected End of File - by Romulator - 03-08-2014, 12:13 PM
RE: Error Unexpected End of File - by Urkle - 03-08-2014, 02:55 PM
RE: Error Unexpected End of File - by Traggey - 03-08-2014, 04:04 PM
RE: Error Unexpected End of File - by DnALANGE - 07-10-2014, 06:38 PM
RE: Error Unexpected End of File - by Neelke - 03-09-2014, 02:16 PM
RE: Error Unexpected End of File - by Fotis - 07-10-2014, 09:37 AM
RE: Error Unexpected End of File - by Urkle - 07-10-2014, 02:48 PM



Users browsing this thread: 1 Guest(s)