codeAPI Reference

s&box ControlSystem: Chair control management

calendar_today May 12, 2026 schedule ~1 min read person PatrickJr verified 50

GameObjectSystem that manages chair control with seat priority sorting. Routes player input to controllable objects using ClientInput.PushScope().

Behavior

  • Sorts occupied chairs by occupation time (earliest occupant gets priority)
  • Uses LinkedGameObjectBuilder to find connected objects
  • Calls IPlayerControllable.OnControl() for each controllable in the chain
  • Runs during Stage.StartFixedUpdate

Usage

Automatically manages control for all BaseChair components in the scene. When a player sits in a chair, the system routes their input to all IPlayerControllable components on connected objects.

The priority system ensures that if multiple chairs are connected (e.g., a vehicle with multiple seats), the earliest occupant controls the entire vehicle.

Source

Used by chair and vehicle control systems.

Was this helpful?