2 cranks one 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: 2 cranks one door (/thread-8435.html) |
2 cranks one door - SLAMnesia - 06-04-2011 hey men! I'm not sure how to do this in script, so I'd like a tad of help I have two cranks (entity file: crankwood.ent if it helps at all) named crank1 and crank2. I'd like to have a door unlock when both the cranks are turned within a certain time of each other, lets say 10 seconds. So you turn one and run to the other turn it, a sound file plays and the door unlocks doesn't sound too difficult to me RE: 2 cranks one door - Russ Money - 06-04-2011 You'll need to use a local/global int for the doors. Set both variables to 0. When one is pulled, create a timer for 10 seconds, change that lever's variable to 1. When both levers = 1, the door unlocks, remove the timer. If the timer runs out, run a function to change the levers back to 0. RE: 2 cranks one door - SLAMnesia - 06-05-2011 can I get some script <3 I dont know how to do any of that |