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) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Amnesia editor - Unlocking doors help? [Solved]
Racingcreed Offline
Junior Member

Posts: 39
Threads: 12
Joined: Dec 2012
Reputation: 3
#1
Amnesia editor - Unlocking doors help? [Solved]

I'm having some issues getting a door to unlock. I have the item "Hollow needle" in my level, and I'm trying to get it to unlock a "Prison door". I have named the needle to "Sharp_needle" and the door to "prison_door_01".

For the needle, I have set up the name and description. My hps. file looks like below:

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

{
AddUseItemCallback("", "Sharp_needle", "prison_door_01", "FUNCTION", true);
}
void FUNCTION(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("prison_door_01", false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem("Key01");
}

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

}

I don't understand why it won't work. Could anyone shed some light on this please? Thanks Smile

Every artist dips his brush in his own soul, and paints his own nature into his pictures. - H.W.B

(This post was last modified: 12-24-2012, 06:32 PM by Racingcreed.)
12-24-2012, 03:21 PM
Find


Messages In This Thread
Amnesia editor - Unlocking doors help? [Solved] - by Racingcreed - 12-24-2012, 03:21 PM



Users browsing this thread: 1 Guest(s)