Api Sandbox Movement ISitTarget
interface

ISitTarget

public interface 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

virtual Void UpdatePlayerAnimator(PlayerController controller, SkinnedModelRenderer renderer)

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

virtual Transform CalculateEyeTransform(PlayerController controller)

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

virtual Void AskToLeave(PlayerController controller)

Player wants to leave the chair

Assembly: Sandbox.Engine Namespace: Sandbox.Movement Full Name: Sandbox.Movement.ISitTarget