Skip to main content

ST Seat

A seat. Players sit by clicking it and stand up with Jump. Add it with Add Component → StageTime → ST Seat. The object needs a collider.

Field
enterLocationWhere the seated player is placed (forward = facing). Empty = this object
exitLocationWhere the player stands after leaving. Empty = in front of the seat
disableExitPlayers cannot leave by themselves; a script calls StandUp

Scripts on the same GameObject get OnSeatEntered(player) and OnSeatExited(player) on every player's device. From scripts:

STSeat seat = GetComponent<STSeat>();
if (seat.seatedPlayer == null) seat.Sit(Networking.LocalPlayer);

Sit and StandUp act on the local player only.

How it works​

ST Seat uses StageTime's own seat (the same one as the Loft venue's chairs) and keeps it networked on its own, so sitting does not change who owns the scripts on the seat.