![]() |
Self Opening/Closing 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: Self Opening/Closing Doors (/thread-26519.html) |
Self Opening/Closing Doors - Carlos2295 - 10-02-2014 Hi there, sorry for asking so many questions, but I really need to lol. Anyways, what I'm trying to do is make a door that will open upon entering a scripting area. Also, I was hoping to make another door that would close upon entering the room. Here's what I have so far for my script. However, it doesn't seem to work. I have the door open amount set to 1. PHP Code: void OnStart() RE: Self Opening/Closing Doors - Romulator - 10-02-2014 This may help. (06-13-2012, 01:39 PM)GrAVit Wrote: There are multiple ways of doing that, but probably the most convinient one would be to use the Area tool in the level editor. Place an area near the door where you would want the script to active, which would make the door open itself. Try reading through that, and if you don't understand something, just point it out and I'll let you know ![]() With the closing door though, there's a pretty simple code for that: PHP Code: SetSwingDoorClosed("door_name", true, true); And that would go within the callback code (so where the (string &in asParent, string &in asChild...) goes), changing "door_name" to the name of your door, keeping the quotes! RE: Self Opening/Closing Doors - Mudbill - 10-02-2014 I made a video tutorial on this exact topic. Perhaps it will help you if you prefer going a bit slower through it. |