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 .Hps File Failing
Caleb4eva Offline
Junior Member

Posts: 2
Threads: 1
Joined: Jun 2015
Reputation: 0
#1
.Hps File Failing

So I have been working on a custom story for a bit now and I have gotten to the point where I needed to have a key unlock a level door,After using the .Hps file and typing in the code for it to work when ever I try to load the custom story map in game I recieve a failure notice that says this:FATAL ERROR:Could not load script file customstories/The Garden/maps/The Garden.hps'!
main (14,1) :ERR :Expected ',' or ';'. Here is the hps file code:void OnStart()
{
AddUseItemCallback("", "Room Key_1", "mansiondoor_1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("mansiondoor_1", false, true);
PlaySoundAtEntity("", "unlock_door", "Room key_1", 0, false);
RemoveItem("Room Key_1");
}
void OnEnter ()

}

void OnLeave ()
{

}
06-10-2015, 10:43 PM
Find


Messages In This Thread
.Hps File Failing - by Caleb4eva - 06-10-2015, 10:43 PM
RE: .Hps File Failing - by DnALANGE - 06-10-2015, 10:53 PM
RE: .Hps File Failing - by Caleb4eva - 06-11-2015, 01:51 AM



Users browsing this thread: 1 Guest(s)