![]() |
It's still locked, Even I used a key...[SOLVED] - 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: It's still locked, Even I used a key...[SOLVED] (/thread-10049.html) |
It's still locked, Even I used a key...[SOLVED] - waqas12346 - 08-29-2011 Ok, I am standing infront of the door, I have a key, I used a key now, Now I heard a Unlocked door sound, Checked my inventory and key is not there anymore because I used it, I'm about to open the door. Now I heard a Locked sound, WHY THE DOOR IS STILL LOCKED??? I even used a key on it!!! What is wrong with this script? ![]() Code: void OnStart() RE: It's still locked, Even I used a key... - Rapture - 08-29-2011 Is the door a swing door or a level door? That makes a difference. Swing door = Opens & closes Level Door = Does not open, only goes to another map. RE: It's still locked, Even I used a key... - Your Computer - 08-29-2011 Did you position the door properly? Sometimes there are conflicts between the door and the door frame that prevents the door from opening. RE: It's still locked, Even I used a key... - waqas12346 - 08-29-2011 (08-29-2011, 10:57 PM)Rapture Wrote: Is the door a swing door or a level door? That makes a difference. It is a Swing Door! (Mansion door) (08-29-2011, 11:01 PM)Your Computer Wrote: Did you position the door properly? Sometimes there are conflicts between the door and the door frame that prevents the door from opening. Yes, The position is correct.... Is there anything wrong with the script? ![]() RE: It's still locked, Even I used a key... - Elven - 08-29-2011 Make sure that in map editor name is EXACTLY same as in script (capital letters and lowercases, etc) RE: It's still locked, Even I used a key... - DRedshot - 08-29-2011 There is nothing wrong with the script, otherwise "PlaySoundAtEntity" wouldn't even run. the only possible error is in "SetSwingDoorLocked("Fluffy_Door", false, true);" Try Deleting the .map_CACHE file from custom_stories/mystory/maps/ RE: It's still locked, Even I used a key... - waqas12346 - 08-30-2011 (08-29-2011, 11:58 PM)DRedshot Wrote: There is nothing wrong with the script, otherwise "PlaySoundAtEntity" wouldn't even run. Is there something wrong with the word "Fluffy"? ![]() ![]() (08-29-2011, 11:43 PM)Elven Wrote: Make sure that in map editor name is EXACTLY same as in script (capital letters and lowercases, etc) Everything is correct, Guess script hate Word "Fluffy"! ![]() RE: It's still locked, Even I used a key... - Elven - 08-30-2011 Hmm, as I said try to put exact one just in case into both. Maybe remove upper cases from both names and make it just fluffy_door or fluffydoor :/? RE: It's still locked, Even I used a key... - waqas12346 - 08-30-2011 (08-30-2011, 12:10 AM)Elven Wrote: Hmm, as I said try to put exact one just in case into both. Maybe remove upper cases from both names and make it just fluffy_door or fluffydoor :/? I changed it to "Monster_Door" and it works, Guess Amnesia or it's scripting function doesn't allow Word "Fluffy"? ![]() RE: It's still locked, Even I used a key...[SOLVED] - Elven - 08-30-2011 hmm, he sometimes does bugs like those |