Skip to content
Discussion options

You must be logged in to vote

Wait, you're not supposed to use custom messages to send inputs; you should use the InputsPlugin (that uses the InputChannel under the hood but with tons of extra guarantees around tick-syncing, input-delay, etc.). I'm actually surprised that things more-or-less worked for you using raw messages.

It is guaranteed that your input emitted on the client on tick T will always be received on the server by tick T (it is buffered under the hood by an input buffer). The flow is supposed to be:

  • add InputPlugin
  • an ActionState component will store the current state of your inputs for your entity at tick T (on both client and server)
  • you have to add an InputMarker component on the client for the ent…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@cBournhonesque
Comment options

Answer selected by cBournhonesque
@onkoe
Comment options

@cBournhonesque
Comment options

@onkoe
Comment options

@cBournhonesque
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants