Skip to main content

ST Seat

A seat. Players sit by clicking it and stand up with Jump (or the seat's exit button). 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
takeControlsA driver seat: the seated player can't walk or turn, and owns the ST Object Sync above the seat (a vehicle), so their device moves it
exitButtonThe input button that stands the player up (Jump by default). None = only a script can

The seat can move: put it on a vehicle, a ride or a lift, and it carries the seated player with it. Other players see them in the seat, wherever the vehicle is.

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.