s&box docs
API ReferenceSandbox.Movement

public abstract interface Sandbox.Movement.ISitTarget

A component that can be sat in by a player. If the player is parented to an object with this component, they will be sitting in it.

Methods

Showing 3 methods

public virtual void AskToLeave(Sandbox.PlayerController controller)

Player wants to leave the chair

public virtual Transform CalculateEyeTransform(Sandbox.PlayerController controller)

Get the transform representing the eye position when seated. This is the first person eye position, not the third person camera position.

public virtual void UpdatePlayerAnimator(Sandbox.PlayerController controller, Sandbox.SkinnedModelRenderer renderer)

Here you can set any animator parameters needed for sitting in this chair

Metadata

FieldValue
NamespaceSandbox.Movement
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Movement.ISitTarget

On this page