![]() |
Locked Door and Key Issue - 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: Locked Door and Key Issue (/thread-5829.html) |
Locked Door and Key Issue - Nitrowing - 12-22-2010 I've browsed through the various tutorials and searched through these forums for a solution to my Key>Door related issues and failed to find anything that helps, so here goes. It's probably some stupid error but, I need a push in the right direction. Code: void UseKey("Hotel Room Key, "Hotel Room Door"){ RE: Locked Door and Key Issue - ThePaSch - 12-22-2010 Yup, you missed quite a few ""s there. Code: void UseKey("Hotel Room Key", "Hotel Room Door"){ RE: Locked Door and Key Issue - Nitrowing - 12-22-2010 Fatal Error: Could not load script. Main (1, 13) : ERR: Expected Data Type Main (40, 1) : ERR: Unexpected token '}' OK so I fixed the second error by removing the } at the last line. The (1, 13) one I'm not so sure about. I'd assume it wants something added/changed to this line: Code: void UseKey("Hotel Room Key", "Hotel Room Door"){ Resolved the issue by browsing some more. Scrapped the old stuff and threw this at the end of the basic one. Code: //////////////////////////// Code: // Run when entering map |