I know how to do 'onTouch' and all that. What I am really unsure about is what to do when the player steps off the pressure plate before it is activated.
For example: Say the pressure plate opens a door if someone stands on it for 3 seconds. What if the person stands on the plate for 2 seconds, then jumps off? How can I code for the door activation to be stopped?
I also have another question: How can I detect how many players are standing on the pressure plate? I want the time it takes for the door to be activated to half (to 1.5 seconds) when 2 people stand on the pressure plate.
Many thanks!