API Referenceglobal
IEventsclass
Events from the PlayerController
object→IEvents
Methods9
Showing 9 methods
public virtual void FailPressing()
We pressed USE but it did nothing
Returns:
void—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.
| Parameter | Type | Description |
|---|---|---|
| go | GameObject | — |
public virtual void OnEyeAngles(Angles angles)
Our eye angles are changing. Allows you to change the sensitivity, or stomp all together.
| Parameter | Type | Description |
|---|---|---|
| angles | Angles | — |
Returns:
void—public virtual void OnJumped()
The player has just jumped
Returns:
void—public virtual void OnLanded(float distance, Vector3 impactVelocity)
The player has landed on the ground, after falling this distance.
| Parameter | Type | Description |
|---|---|---|
| distance | float | — |
| impactVelocity | Vector3 | — |
Returns:
void—public virtual void PostCameraSetup(Sandbox.CameraComponent cam)
Called after we've set the camera up
| Parameter | Type | Description |
|---|---|---|
| cam | CameraComponent | — |
Returns:
void—public virtual void PreInput()
We have a chance to do something before input is processed
Returns:
void—No results match this filter.