s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
IEvents
chevron_left API Reference
interface
IEvents

Methods

functionsFailPressingfunctionsGetUsableComponentfunctionsOnEyeAnglesfunctionsOnJumpedfunctionsOnLandedfunctionsPostCameraSetupfunctionsPreInputfunctionsStartPressingfunctionsStopPressing
IEvents
Events from the PlayerController
interface Sandbox.PlayerController .
abstractSandbox.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)
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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter