IEventsclass

Events from the PlayerController

objectIEvents
Namespace
global
Assembly
Sandbox.Engine
Declaration
public abstract interface Sandbox.PlayerController.IEvents

Methods9

Showing 9 methods

public virtual void FailPressing()PUBLICVIRTUAL

We pressed USE but it did nothing

Returns:void

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

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.

ParameterTypeDescription
goGameObject
Returns:Component

public virtual void OnEyeAngles(Angles angles)PUBLICVIRTUAL

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

ParameterTypeDescription
anglesAngles
Returns:void

public virtual void OnJumped()PUBLICVIRTUAL

The player has just jumped

Returns:void

public virtual void OnLanded(float distance, Vector3 impactVelocity)PUBLICVIRTUAL

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

ParameterTypeDescription
distancefloat
impactVelocityVector3
Returns:void

public virtual void PostCameraSetup(Sandbox.CameraComponent cam)PUBLICVIRTUAL

Called after we've set the camera up

ParameterTypeDescription
camCameraComponent
Returns:void

public virtual void PreInput()PUBLICVIRTUALINGEST

We have a chance to do something before input is processed

Returns:void

public virtual void StartPressing(Sandbox.Component target)PUBLICVIRTUAL

We have started using something (use was pressed)

ParameterTypeDescription
targetComponent
Returns:void

public virtual void StopPressing(Sandbox.Component target)PUBLICVIRTUAL

We have stopped using something

ParameterTypeDescription
targetComponent
Returns:void

On this page