Calculating player speed server-side #3976
Unanswered
o7q
asked this question in
Mod Dev Support
Replies: 1 comment 1 reply
-
Use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I am trying to calculate player speed on the server. I can easily do it client side but the methods I use do not work the same on the server.
I am using the
player.getX()
andplayer.prevX
variables. These work perfectly fine on the client but they return the exact same value on the server.Server-side getX() and prevX values
The function is being called from an
AttackEntityCallback
eventI have been stuck on this question for the past year, worked on it on and off. I cannot find a good way to do this. I have asked around in the Discord, read the wiki, no luck yet. I presume it's something incredibly simple, I have yet to find it.
Beta Was this translation helpful? Give feedback.
All reactions