STSeat
class StageTime.SDK.STSeat
A seat (like VRCStation). Players sit by clicking it and stand up with Jump (or exitButton). Needs a collider. A seat that moves (for example inside a vehicle) carries its player with it, on every device. Scripts on the same GameObject get OnSeatEntered and OnSeatExited on every player's device.
Add it with Add Component → StageTime/ST Station.
Fields
enterLocation
Transform enterLocation
Where the seated player is placed (forward = facing). Empty = this object.
exitLocation
Transform exitLocation
Where the player stands after leaving. Empty = in front of the seat.
disableExit
bool disableExit
Players cannot leave by themselves (a script calls StandUp).
takeControls
bool takeControls
While the local player sits here, walking and turning are off, so the move stick and keys only reach scripts (StageTimeInput and the OnInput events). The seated player also becomes the owner of the nearest ST Object Sync above this seat, for example a vehicle's driver.
exitButton
STInputButton exitButton
The button that makes the seated player stand up. None = only a script (StandUp) can.
Properties
seatedPlayer
StageTimePlayer seatedPlayer
The seated player, or null (also once that player has left the room).
Methods
Sit
void Sit(StageTimePlayer player)
Seats the local player.
StandUp
void StandUp(StageTimePlayer player)
Makes the local player stand up and leave the seat.