API ReferenceSandbox.Movement

ISitTargetclass

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.

objectISitTarget
Namespace
Sandbox.Movement
Assembly
Sandbox.Engine
Declaration
public abstract interface Sandbox.Movement.ISitTarget

Methods3

Showing 3 methods

public virtual void AskToLeave(Sandbox.PlayerController controller)PUBLICVIRTUAL

Player wants to leave the chair

ParameterTypeDescription
controllerPlayerController
Returns:void

public virtual Transform CalculateEyeTransform(Sandbox.PlayerController controller)PUBLICVIRTUAL

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

ParameterTypeDescription
controllerPlayerController
Returns:Transform

On this page