On Pickup help - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: On Pickup help (/thread-5152.html) |
On Pickup help - house - 10-22-2010 Hello. I want to make something in my level that when you pick up a lantern, a locked door blocking the path is unlocked. Like in the second level of Amnesia. You cannot continue until you pick up the lantern. Can someone help me? RE: On Pickup help - ThePaSch - 10-22-2010 (10-22-2010, 03:19 PM)house Wrote: Hello. I want to make something in my level that when you pick up a lantern, a locked door blocking the path is unlocked. Like in the second level of Amnesia. You cannot continue until you pick up the lantern. Can someone help me? In the lantern's Entity properties, type (for example) "PickLanternUnlockDoor" (without the quotes) into the "CallbackFunc" field. Then, in your mapname.hps file, do something like this: Code: void PickLanternUnlockDoor(string &in EntityName, string &in Type) RE: On Pickup help - house - 10-22-2010 (10-22-2010, 03:25 PM)ThePaSch Wrote:(10-22-2010, 03:19 PM)house Wrote: Hello. I want to make something in my level that when you pick up a lantern, a locked door blocking the path is unlocked. Like in the second level of Amnesia. You cannot continue until you pick up the lantern. Can someone help me? Thank you! It works now! Thank you a lot! RE: On Pickup help - Hyperoom - 06-20-2017 (10-22-2010, 03:25 PM)ThePaSch Wrote:Did I do something wrong since the whole game crashes when I try to start the custom story?(10-22-2010, 03:19 PM)house Wrote: Hello. I want to make something in my level that when you pick up a lantern, a locked door blocking the path is unlocked. Like in the second level of Amnesia. You cannot continue until you pick up the lantern. Can someone help me? RE: On Pickup help - Romulator - 06-20-2017 (06-20-2017, 02:41 PM)Hyperoom Wrote: Did I do something wrong since the whole game crashes when I try to start the custom story? Hello there Hyperoom. If you have a look at the timecode of the post you have replied to, you should notice that that post was from 2010. The users who have posted this thread have moved on, and are unlikely to help you with you problems. It is recommended you start a new thread in the Development Support subforum, outlining your problem and, if possible, the script which may be causing problems. Closing this thread. |