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
FlyingFruitcake Offline
Junior Member

Posts: 18
Threads: 4
Joined: May 2012
Reputation: 0
#7
RE: Amnesia custom story problem

I used this code, but I used it in ''Run when entering map''
///Run when entering map///
void OnEnter() {
AddUseItemCallback("", "key_1", "door_1", "KeyOnDoor", true);}
void KeyOnDoor(string &in asItem, string &in asEntity){     
SetSwingDoorLocked("door_1", false, true);     
PlaySoundAtEntity("", "unlock_door", "door_1", 1, false);    
RemoveItem("key_1");
}


Make sure your door and key have the same name as in the code...

Always watch your back...
05-13-2012, 11:07 AM
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 FlyingFruitcake - 05-13-2012, 11:07 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: 1 Guest(s)