[LANG] (FIXED) Can't use key on door. - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [LANG] (FIXED) Can't use key on door. (/thread-13146.html) |
(FIXED) Can't use key on door. - Darkaroth - 02-06-2012 Hey all. I'm trying to make a amnesia custom map (started yesterday) and for some reason my key won't work on the door. What's wrong? This is the script: Code: //////////////////////////// and this is the .lang file: Code: sorry for my english ( secondary language ) RE: Can't use key on door. - Elven - 02-06-2012 Interact syntax in wiki were: void MyFunc(string &in asEntity) No idea where u got yours... RE: Can't use key on door. - Darkaroth - 02-06-2012 Thanks, copied it from some video on youtube. (02-06-2012, 07:49 PM)Elven Wrote: Interact syntax in wiki were:i fixed the name on the key. But it still won't open the door for some reason. What else could be the problem? RE: Can't use key on door. - Obliviator27 - 02-06-2012 The problem is Elven gave you the incorrect syntax. You want void UsedKeyOnDoor(string &in asItem, string &in asEntity) RE: Can't use key on door. - Darkaroth - 02-06-2012 (02-06-2012, 09:00 PM)Obliviator27 Wrote: The problem is Elven gave you the incorrect syntax.Thanks alot, worked like a charm ! |