![]() |
[SCRIPT] Moveable book unlocks a 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: [SCRIPT] Moveable book unlocks a door? (/thread-17235.html) |
Moveable book unlocks a door? - oscar1007 - 07-24-2012 Hey! To begin with, yes I have looked through the forums searching for an answer to this, yet I couldn't find any. So, as the title says, I wan't a door to get unlocked when the player drags out a book from a bookshelf. How do I script that? The book is already in the world named "book_moveable_1". Someone please help me ![]() Thanks! RE: Moveable book unlocks a door? - SilentStriker - 07-24-2012 make it collide with a script are ![]() RE: Moveable book unlocks a door? - Adny - 07-24-2012 Create a small script_area where you know it will only make contact with the book when it is pulled all the way out (this is the most difficult part; make sure to thoroughly test it in dev mode and use debug messages for this). From there, simply set up an entity collide callback, using the book as the parent, and the script area as the child. Hope that helped! RE: Moveable book unlocks a door? - oscar1007 - 07-24-2012 ah that is smart ! ![]() Thanks! |