API ReferenceSandbox.Movement
SitMoveModeclass
The character is sitting
Constructors1
Showing 1 constructors
public SitMoveMode()
No results match this filter.
Methods6
Showing 6 methods
public virtual Transform CalculateEyeTransform()
Get the eye transform from the chair we're sitting in
public virtual void OnModeBegin()
Entering the chair, disable body and collider
Returns:
void—public virtual void OnModeEnd(Sandbox.Movement.MoveMode next)
Leaving the chair, re-enable body and collider
| Parameter | Type | Description |
|---|---|---|
| next | MoveMode | — |
Returns:
void—public virtual int Score(Sandbox.PlayerController controller)
Score this move mode highly if we're parented to a chair
| Parameter | Type | Description |
|---|---|---|
| controller | PlayerController | — |
Returns:
int—public virtual void UpdateAnimator(Sandbox.SkinnedModelRenderer renderer)
Update the animator while sitting in a chair
| Parameter | Type | Description |
|---|---|---|
| renderer | SkinnedModelRenderer | — |
Returns:
void—No results match this filter.