![]() |
Why is the key to door script not working to me? - 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: Why is the key to door script not working to me? (/thread-22321.html) Pages:
1
2
|
RE: Why is the key to door script not working to me? - Wolfpa - 08-05-2013 Wait,could it be fixed with launching Amnesia like an administrator becouse I'm in a homegroup? RE: Why is the key to door script not working to me? - Tomato Cat - 08-05-2013 (08-05-2013, 09:19 PM)Wolfpa Wrote: Wait,could it be fixed with launching Amnesia like an administrator becouse I don't think running it as an admin fixes it. There's this feature with some windows releases ("file virtualization", if I recall correctly) that has been known to cause issues with maps and such. I believe it's located under C:\Users\<user>\AppData\Local\VirtualStore. Then again, I'm simply parroting what I've read from some other issues, this could be entirely unrelated to your specific problem. RE: Why is the key to door script not working to me? - FurtherGames - 08-06-2013 (08-05-2013, 07:45 PM)Wolfpa Wrote: Did but still it doesn't work .I checked all names and its good,soooo... It can't be good otherwise the door would open. Are you opening a normal door or a level door to take you to another map? If its a level door, you are using the wrong script. RE: Why is the key to door script not working to me? - Wolfpa - 08-06-2013 Thanks guys but nothing works and yes I'm using a normal door. RE: Why is the key to door script not working to me? - Wolfpa - 08-07-2013 What is that? RE: Why is the key to door script not working to me? - Wolfpa - 08-07-2013 Nevermind guys I found a working script. : void OnStart() { AddUseItemCallback("", "Key", "Door", "UseKeyOnDoor", true); } void UseKeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked(asEntity, false, true); PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false); RemoveItem(asItem); } Still don't know what was wrong with that other one but still great! ![]() RE: Why is the key to door script not working to me? - The chaser - 08-07-2013 The names have changed, so the names have to be what was wrong. |