How do you open a door that needs three pressure plates activated in a specific sequence?

I am still having trouble with coding this, how would I go about this in an easier manner? I want to be able to open a door that needs three pressure plates pressed, however I want it to be pressed in a specific sequence to open it.

1 Like

As they press the plates, you need to put integers in an array ( of 3 ). Each time they press a plate, the latest one gets added on the end, if that would mean more than 3 in the array, then shift them along one.

At any point, you can compare the array with an array with the correct answer in. That’s easy, you can just use = to compare the whole array in one go.

:slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.