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 end of file
ironman0001 Offline
Member

Posts: 53
Threads: 8
Joined: Sep 2012
Reputation: 0
#1
Unexpected end of file

I'm trying to make an exploding door and then it came up with that error... Here's my script



void OnStart()
{
AddEntityCollideCallback("Player", "TeleportScript", "PoopedYaPants", true, 1);
SetMessage("Messages", "Popup1", 0);
AddUseItemCallback("", "Spooky", "Scared", "PopupHead", true);
SetEntityPlayerInteractCallback("Spooky", "lolz", true);
AddEntityCollideCallback("Player", "CreepySound", "wow", true, 1);
AddEntityCollideCallback("Player", "ExplodeDoor", "CollideDoorExplode", true, 1);
}

void PoopedYaPants(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Jesus", true);
AddPropForce("Jesus", 0, 0, 10000, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "Jesus", 0, false);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
}

void Popup1()
{
AddEntityCollideCallback("Player", "Message_1", "Message1", true, 1);
}

void PopupHead(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Scared", false, true);
PlaySoundAtEntity("", "unlock_door", "Scared", 0, false);
RemoveItem("Spooky");
}

void lolz(string &in item)
{
SetEntityActive("lolz_1", true);
PlaySoundAtEntity("", "21_screams.snt", "Player", 0, false);
}

void wow(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "29_amb_guard.snt", "CreepySound", 0, false);
}

void CollideDoorExplode(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("DoorExplode1", false);
SetEntityActive("DoorExploded", true);
CreateParticleSystemAtEntity("", "ps_break_wood.ps", "DoorExplodeParticle", false);
PlaySoundAtEntity("", "break_wood.snt, "DoorExplodeParticle", 0, false);
}
09-29-2012, 05:57 PM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#2
RE: Unexpected end of file

(09-29-2012, 05:57 PM)ironman0001 Wrote: PlaySoundAtEntity("", "break_wood.snt, "DoorExplodeParticle", 0, false);
should be:
PlaySoundAtEntity("", "break_wood.snt", "DoorExplodeParticle", 0, false);

You forgot a quote.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
09-29-2012, 05:58 PM
Website Find




Users browsing this thread: 1 Guest(s)