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.
object→ISitTarget
Methods3
Showing 3 methods
public virtual void AskToLeave(Sandbox.PlayerController controller)
Player wants to leave the chair
| Parameter | Type | Description |
|---|---|---|
| controller | PlayerController | — |
Returns:
void—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.
| Parameter | Type | Description |
|---|---|---|
| controller | PlayerController | — |
public virtual void UpdatePlayerAnimator(Sandbox.PlayerController controller, Sandbox.SkinnedModelRenderer renderer)
Here you can set any animator parameters needed for sitting in this chair
| Parameter | Type | Description |
|---|---|---|
| controller | PlayerController | — |
| renderer | SkinnedModelRenderer | — |
Returns:
void—No results match this filter.