Author Topic: Need help with a special door and lever script  (Read 314 times)

Legacy_Tythesly

  • Newbie
  • *
  • Posts: 36
  • Karma: +0/-0
Need help with a special door and lever script
« on: August 31, 2011, 06:01:40 pm »


                Ok here is my idea.... I have
a module that has a min of 4 players.... They start in a small starting area so
that they can meet, talk, and strategize with eachother....



I want to have 4 levers that will only let 1 PC use it at a time.... Like all 4
people must use seperate levers to unlock the door. (so if 1 person uses a
lever, if they try to use another lever it wouldn’t let them ) That way
everybody is ready and a person cant start the adventure until they are all
ready…

 

Im having trouble explaining it lol….
Ill try to help explain if you guys cant under stand exactly.

 

 

Sort of like this

 

 

 

                                                                      
                                                                        Door

                 Lever                    Lever                                   Lever                         Lever

 

 

 

 

 

 

                                                                  Start Position


Also I would like a key for the door to skip that script if only 1 person is playing.... like me testing it.
               
               

               


                     Modifié par Tythesly, 31 août 2011 - 05:38 .
                     
                  


            

Legacy__six

  • Hero Member
  • *****
  • Posts: 1436
  • Karma: +0/-0
Need help with a special door and lever script
« Reply #1 on: August 31, 2011, 08:38:13 pm »


               This may be of some use to you. The idea there was to unlock a door only if all four levers were pressed within a short time (a couple of seconds) of each other. There's a link there to my script to do that for two levers, as well as some commentary on how to set it up for 4 that should hopefully be easy to follow.

It's not exactly the same thing, but the overall job of only opening the door when everyone's ready, it will achieve assuming you place the levers quite fair apart.

The key part someone else should be able to help with *looks hopefully around*
               
               

               


                     Modifié par _six, 31 août 2011 - 07:39 .
                     
                  


            

Legacy_Tythesly

  • Newbie
  • *
  • Posts: 36
  • Karma: +0/-0
Need help with a special door and lever script
« Reply #2 on: August 31, 2011, 08:45:23 pm »


               

_six wrote...

This may be of some use to you. The idea there was to unlock a door only if all four levers were pressed within a short time (a couple of seconds) of each other. There's a link there to my script to do that for two levers, as well as some commentary on how to set it up for 4 that should hopefully be easy to follow.

It's not exactly the same thing, but the overall job of only opening the door when everyone's ready, it will achieve assuming you place the levers quite fair apart.

The key part someone else should be able to help with *looks hopefully around*



Thx for the help... I was wondering if people were still helping lol.