Frictional Games Forum (read-only)

Full Version: 2 cranks one door
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hey men!
I'm not sure how to do this in script, so I'd like a tad of help Big Grin
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 Big Grin
doesn't sound too difficult to me
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.
can I get some script <3 I dont know how to do any of that