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 Unexpected token?
Manbearpig116 Offline
Junior Member

Posts: 9
Threads: 4
Joined: Apr 2012
Reputation: 0
#6
RE: Unexpected token?

Okay now it's telling me that the error is located at 37,2 but I have no idea what to do with it
////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true, 0);
AddUseItemCallback("", "waterdoorkey", "waterdoor", "UsedKeyOnDoor", true);
}

void CollideRoomTwo(string &in asParent, string &in asChild, int alstate)
{
SetSwingDoorClosed("RoomTwoDoor", true, true);
GiveSanityDamage(90 , true);
PlayGuiSound("react_pant.snt", 1);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)

{

SetSwingDoorLocked("waterdoorkey", false, true);

PlaySoundAtEntity("", "unlock_door", "waterdoor", 0, false);

RemoveItem("waterdoorkey");

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}
(This post was last modified: 04-26-2012, 06:52 PM by Manbearpig116.)
04-26-2012, 06:51 PM
Find


Messages In This Thread
Unexpected token? - by Manbearpig116 - 04-26-2012, 06:13 PM
RE: Unexpected token? - by TeamSD - 04-26-2012, 06:25 PM
RE: Unexpected token? - by Manbearpig116 - 04-26-2012, 06:32 PM
RE: Unexpected token? - by TeamSD - 04-26-2012, 06:36 PM
RE: Unexpected token? - by Prelauncher - 04-26-2012, 06:37 PM
RE: Unexpected token? - by Manbearpig116 - 04-26-2012, 06:51 PM
RE: Unexpected token? - by Prelauncher - 04-26-2012, 06:54 PM



Users browsing this thread: 1 Guest(s)