The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
#1
Unexpected token?

Any ideas?

////////////////////////////
// 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_past", 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()
{

}
04-26-2012, 06:13 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)