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
Help
TheDanny942 Offline
Junior Member

Posts: 20
Threads: 7
Joined: Dec 2011
Reputation: 0
#1
Help

I need some help with my .hps file. I need to know how to separate multiple scripts (I'm an amateur I know). It keeps giving me an error message that says there was an unexpected token {. Here is my script file, and I thank you so much in advance for helping a amateur out. Big Grin
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "BasementDoorKey", "BasementDoor", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("BasementDoor", false, true);
PlaySoundAtEntity("", "unlock_door", "BasementDoor", 0, false);
RemoveItem("BasementDoorKey");
}
{
AddEntityCollideCallback("Player", "Scary", "CollideScary", true, 1);
}

void CollideScary(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("ScareDoor", true, true);
}

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

}

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

}
01-23-2012, 02:41 AM
Find


Messages In This Thread
Help - by TheDanny942 - 01-23-2012, 02:41 AM
RE: Help - by Tripication - 01-23-2012, 02:46 AM
RE: Help - by TheDanny942 - 01-23-2012, 02:54 AM
RE: Help - by Tripication - 01-23-2012, 02:57 AM
RE: Help - by TheDanny942 - 01-23-2012, 03:07 AM
RE: Help - by Tripication - 01-23-2012, 03:31 AM



Users browsing this thread: 1 Guest(s)