|
OK to keep things simple, on my game level im going to have 5 pressure plates on the floor. To keep things simple lets name them A,B,C,D,E. I want to make the player press them in a certain order for a door to open or an animation play. For example i want the pressure plates to be pressed in B,A,D,E,C order but i want them to reset if the user inputs them in the wrong order. What is the simplest way to do this? Can anyone help me write the correct scripting. Thanks in advance
(comments are locked)
|
|
You are going to need two scripts. One to process individual pressure plates, and one to detect finished condition. As for requiring a specific order, just put the pressure plate objects into the control array in the desired order with the editors drag and drop.The following is some untested pseudo code to get you going in the right direction.
(comments are locked)
|
