s&box docs

public abstract interface Sandbox.PlayerController.IEvents

Events from the PlayerController

Broader workflow and conceptual references connected to this API.

Methods

Showing 9 methods

public virtual void FailPressing()

We pressed USE but it did nothing

public virtual Sandbox.Component GetUsableComponent(Sandbox.GameObject go)

Used by the Using system to find components we can interact with. By default we can only interact with IPressable components. Return a component if we can use it, or else return null.

public virtual void OnEyeAngles(Angles angles)

Our eye angles are changing. Allows you to change the sensitivity, or stomp all together.

Implementations

public virtual void OnJumped()

The player has just jumped

Implementations

public virtual void OnLanded(float distance, Vector3 impactVelocity)

The player has landed on the ground, after falling this distance.

Implementations

public virtual void PostCameraSetup(Sandbox.CameraComponent cam)

Called after we've set the camera up

Implementations

public virtual void PreInput()

We have a chance to do something before input is processed

Implementations

public virtual void StartPressing(Sandbox.Component target)

We have started using something (use was pressed)

Implementations

public virtual void StopPressing(Sandbox.Component target)

We have stopped using something

Metadata

FieldValue
Namespaceglobal
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.PlayerController.IEvents

On this page