s&
info
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
explore
Discover Games
category
Workshop
sports_esports
Games
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
menu_book
Learn
docs
Documentation
api
Api Reference
school
Tutorials
manage_search
Code Search
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
IEvents
chevron_left
API Reference
interface
IEvents
Methods
functions
FailPressing
functions
GetUsableComponent
functions
OnEyeAngles
functions
OnJumped
functions
OnLanded
remove_circle
PostCameraSetup
functions
PreInput
functions
StartPressing
functions
StopPressing
IEvents
Events from the PlayerController
interface
Sandbox.PlayerController
.
abstract
Sandbox.Engine
functions
Methods
9
FailPressing
(
)
We pressed USE but it did nothing
GetUsableComponent
(
go
)
Component
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.
OnEyeAngles
(
angles
)
Our eye angles are changing. Allows you to change the sensitivity, or stomp all together.
OnJumped
(
)
The player has just jumped
OnLanded
(
distance
,
impactVelocity
)
The player has landed on the ground, after falling this distance.
PostCameraSetup
(
cam
)
obsolete
Called after we've set the camera up
PreInput
(
)
We have a chance to do something before input is processed
StartPressing
(
target
)
We have started using something (use was pressed)
StopPressing
(
target
)
We have stopped using something
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.