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


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

Posts: 99
Joined: May 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Russ Money Offline
Senior Member

Posts: 360
Joined: Dec 2010
Reputation: 4
Post: #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 all posts by this user Quote this message in a reply
SLAMnesia Offline
Member

Posts: 99
Joined: May 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)