API ReferenceSandbox.Movement

SitMoveModeclass

The character is sitting

objectMoveModeSitMoveMode
Namespace
Sandbox.Movement
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.Movement.SitMoveMode : Sandbox.Movement.MoveMode

Constructors1

Showing 1 constructors

Methods6

Showing 6 methods

public virtual Transform CalculateEyeTransform()PUBLICVIRTUAL

Get the eye transform from the chair we're sitting in

Returns:Transform

public virtual void OnModeBegin()PUBLICVIRTUAL

Entering the chair, disable body and collider

Returns:void

public virtual void OnModeEnd(Sandbox.Movement.MoveMode next)PUBLICVIRTUAL

Leaving the chair, re-enable body and collider

ParameterTypeDescription
nextMoveMode
Returns:void

public virtual int Score(Sandbox.PlayerController controller)PUBLICVIRTUAL

Score this move mode highly if we're parented to a chair

ParameterTypeDescription
controllerPlayerController
Returns:int

public virtual void UpdateAnimator(Sandbox.SkinnedModelRenderer renderer)PUBLICVIRTUALPER-FRAME

Update the animator while sitting in a chair

ParameterTypeDescription
rendererSkinnedModelRenderer
Returns:void

On this page