![]() |
Level Doors - 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: Level Doors (/thread-53612.html) |
Level Doors - XeOnTricks - 03-05-2017 i was trying to lock and unlock a level door and i got most of the things right but when i went to go use the key on the level door all it did was make the unlock sound and i didn't unlock the level door. what am i doing wrong? RE: Level Doors - FlawlessHappiness - 03-05-2017 Is it possible that you used SetSwingDoorLocked and not SetLevelDoorLocked? PHP Code: SetLevelDoorLocked(string& asName, bool abLocked); Also make sure the name of the door in the editor and in the script is the same. RE: Level Doors - XeOnTricks - 03-06-2017 heres my script. idk whats wrong with it. AddUseItemCallback("", "Key", "LevelDoor", "UnlockLevel", true); } void UnlockLevel(string &in asItem, string &in asEntity) { SetLevelDoorLocked("LevelDoor", false); PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false); RemoveItem(asItem); } RE: Level Doors - Romulator - 03-06-2017 Is your door named LevelDoor in the editor? You could even change the code's SetLevelDoorLocked(); code to reference the asEntity variable so that it unlocks the door you defined in the AddUseItemCallback();. PHP Code: SetLevelDoorLocked(asEntity, false); RE: Level Doors - Traggey - 03-07-2017 Moooving this to development support. RE: Level Doors - XeOnTricks - 03-11-2017 (03-07-2017, 02:05 PM)Traggey Wrote: Moooving this to development support. i apologize if this was in the wrong place, still new to this forum :/ RE: Level Doors - Slanderous - 03-12-2017 (03-11-2017, 11:38 PM)XeOnTricks Wrote:(03-07-2017, 02:05 PM)Traggey Wrote: Moooving this to development support. Just so that you know, this is the section where we post all the technical issues concerining modding. |