Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2 cranks one door
SLAMnesia Offline
Member

Posts: 99
Threads: 39
Joined: May 2011
Reputation: 0
#1
2 cranks one door

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
06-04-2011, 05:06 AM
Find
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#2
RE: 2 cranks one door

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.

06-04-2011, 05:20 AM
Find
SLAMnesia Offline
Member

Posts: 99
Threads: 39
Joined: May 2011
Reputation: 0
#3
RE: 2 cranks one door

can I get some script <3 I dont know how to do any of that
06-05-2011, 10:46 PM
Find




Users browsing this thread: 1 Guest(s)