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 | |
|---|---|
enterLocation | Where the seated player is placed (forward = facing). Empty = this object |
exitLocation | Where the player stands after leaving. Empty = in front of the seat |
disableExit | Players 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.