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:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My hps file doesn't work
TheBaker Offline
Junior Member

Posts: 15
Threads: 5
Joined: Aug 2011
Reputation: 0
#1
My hps file doesn't work

Hello guys, I just started using the editor 2 days ago and i've tried making a script that opens a door with a key. I have seen tutorials and i have been reading the wiki but it still wont work so I hope you guys can help me. I'm 16 BTW so don't blame me Wink

My hps file is placed in my maps folder just so you know.

This is what the hps file looks like at the moment:

////////////////////////////
// Run first time starting map
void OnStart()

{
AddUseItemCallback("", "bedroomkey_1", "mansion_1", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("bedroomkey_1");
}


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

}

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

}

Hope you can help me Smile
08-08-2011, 09:08 PM
Find


Messages In This Thread
My hps file doesn't work - by TheBaker - 08-08-2011, 09:08 PM
RE: My hps file doesn't work - by Tanshaydar - 08-08-2011, 10:08 PM
RE: My hps file doesn't work - by TheBaker - 08-08-2011, 10:59 PM
RE: My hps file doesn't work - by Endlvl - 08-09-2011, 07:54 PM



Users browsing this thread: 1 Guest(s)