![]() |
Door open automatically script - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Door open automatically script (/thread-7348.html) |
Door open automatically script - larslu - 04-13-2011 How can I make a script so when I walk into a area, a door opens automatically? RE: Door open automatically script - palistov - 04-13-2011 First, add AddEntityCollideCallback("Player", "trigger_area", "OpenDoor", true, 1); your function to call will be void OpenDoor(string &in asParent, string &in asChild, int alState) { AddPropImpulse("Door", X, Y, Z, "World"); //red is x axis, blue is z axis, green is y axis. } Change your X Y and Z values until they apply an appropriate force to open the door. RE: Door open automatically script - Josh707 - 04-16-2011 SetSwingDoorClosed("DoorName", T/F, T/F); First T/F= true or false, true = closed, false = open Second T/F = true or false still, true = use effects false = not use effects... I have no idea what the difference is though. |