#how to lock players out of seats and still be able to put them in them

4 messages · Page 1 of 1 (latest)

open mist
#

How do you make it so you can put a player in a seat, but so they can’t click it to sit

copper spruce
#

When a player leaves the seat, just execute lock players out with bool value set to true.
If you want to have the seat available to be clicked on again then after Lock Players Out was executed, maybe add a delay chip so
once it finishes, it executes another Lock Players Out with its bool set to false.
@open mist

#

If you need to detect when a player leaves a seat, use a Update30hz Event Receiver, add a .2s Delay (can be higher/lower) that is constantly checking if a player is in the seat.

formal brook
# copper spruce If you need to detect when a player leaves a seat, use a Update30hz Event Receiv...

theres also just "Seated Player Changed" event exclusive to seats, when seated player changed, set lock players out true. And it so sounds like the OP will only have a specific case for seating the player, thus dosent need a detection system. Just whenever OP wants to seat player, set lock players out false and then seat target player. Once target player gets out, it locks others out of it just like that.