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
Please check the troubleshooting guides before posting!
slater899 Offline
Junior Member

Posts: 2
Threads: 2
Joined: Jun 2012
Reputation: 0
#1
Please check the troubleshooting guides before posting!

ok so its been about 5 hours now and i still cant get this to work im making a custom story and i followed all the instructions to make a key open a door script and then everytime i try to run the map in game it says unable to load script unexpected end of file. here is my .HPS also i dont have much in the map either just two rooms basically its like a test. please respond asap! Smile
void OnStart()
{
if(ScriptDebugOn())
{
GiveItemFromFile("lantern", "lantern.ent");
SetPlayerLampOil(100.0f);


for(int i = 0;i < 10;i++)
{
GiveItemFromFile("tinderbox", "tinderbox.ent");
}
//===========================================
// This runs when the player enters the map
void OnEnter()
{
AddUseItemCallback("", "Newdoorkey_1", "Newdoor", "UsedKeyOnDoor", "true");
{
void UsedDoorKey(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Newdoor", false, true);
PlaySoundAtEntity("", "","Newdoor", 0, false);
RemoveItem(Newdoorkey_1);
}
//===========================================
// This runs when the player leaves the map
void OnLeave()
{
}
06-29-2012, 06:00 PM
Find


Messages In This Thread
Please check the troubleshooting guides before posting! - by slater899 - 06-29-2012, 06:00 PM



Users browsing this thread: 1 Guest(s)