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
Amnesia custom story problem
KodiakZ Offline
Junior Member

Posts: 4
Threads: 1
Joined: May 2012
Reputation: 0
#1
Question  Amnesia custom story problem

So I'm working on a Amnesia custom story but I'm stuck. I've made a key to open a specific door, but it will not work. The key is for a map changing door. My key is called Key_1 and my door is called Door_1. I cannot seem to get it to work. Here's my code:


////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "Key_1", "Door_1", "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("Door_1", false);
PlaySoundAtEntity("", "unlock_door", "Door_1", 0, false);
}

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

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

Any help will be appreciated! Thanks for reading!
05-12-2012, 03:11 PM
Find


Messages In This Thread
Amnesia custom story problem - by KodiakZ - 05-12-2012, 03:11 PM
RE: Amnesia custom story problem - by EXAWOLT - 05-12-2012, 04:44 PM
RE: Amnesia custom story problem - by Putmalk - 05-12-2012, 11:26 PM
RE: Amnesia custom story problem - by KodiakZ - 05-13-2012, 10:16 AM
RE: Amnesia custom story problem - by pandasFTW - 05-13-2012, 10:32 AM
RE: Amnesia custom story problem - by KodiakZ - 05-13-2012, 11:02 AM
RE: Amnesia custom story problem - by pandasFTW - 05-13-2012, 11:10 AM
RE: Amnesia custom story problem - by KodiakZ - 05-13-2012, 11:10 AM
RE: Amnesia custom story problem - by EXAWOLT - 05-13-2012, 04:50 PM
RE: Amnesia custom story problem - by Putmalk - 05-13-2012, 01:58 PM
RE: Amnesia custom story problem - by ezra627 - 09-25-2014, 03:26 AM
RE: Amnesia custom story problem - by Mudbill - 09-25-2014, 06:55 AM



Users browsing this thread: 2 Guest(s)