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 needed with .hps scripting
planetbomb Offline
Junior Member

Posts: 5
Threads: 1
Joined: Nov 2010
Reputation: 0
#1
Help needed with .hps scripting

Ok when I go to test my custom story, I get this message.

FATAL ERROR: Could not load script file
"custom_stories/Escape"/maps/Top_floor-A.hps"!
main (12,2) : ERR : Unexpected end of line


And this the script in the .hps file

////////////////////////////
// Run first time starting map
void OnStart()
{
ddUseItemCallback("", ""doorkey_1", "keydoor_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("keydoor_1", false, True);
PlaySoundAtEntity("", "unlock_door", "keydoor_1", 0, false);
RemoveItem("doorkey_1");
}



Any help?Huh
06-05-2011, 08:17 PM
Find


Messages In This Thread
Help needed with .hps scripting - by planetbomb - 06-05-2011, 08:17 PM
RE: Help needed with .hps scripting - by Apjjm - 06-05-2011, 08:28 PM
RE: Help needed with .hps scripting - by Apjjm - 06-06-2011, 12:52 AM



Users browsing this thread: 1 Guest(s)