Speed of the player

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Jun 11, 2020
14
0
1
56
Hello, is it possible to find the current speed of the player, NOT THE SPEED MULTIPLYER, the current speed (eg 5m/s)

Thanks

Have you googled it: Yes
Have you searched the forums: Yes
Have you found the result: No.
 
Hello, is it possible to find the current speed of the player, NOT THE SPEED MULTIPLYER, the current speed (eg 5m/s)

Thanks

Have you googled it: Yes
Have you searched the forums: Yes
Have you found the result: No.
%player's walking speed%
The normal sprint speed is 1 and corresponds to 4.37m/s IIRC(!) So use some math and be happy
 
%player's walking speed%
The normal sprint speed is 1 and corresponds to 4.37m/s IIRC(!) So use some math and be happy
How would this apply (I would like to see the player's real time velocity)?

Here is some code that I could think of, but it does not work.
Code:
command /speed:
  permission: op
  trigger:
    loop 20 times:
      set {_x} to player's x velocity / 4.37
      set {_y} to player's y velocity / 4.37
      set {_z} to player's z velocity / 4.37
      set {_speed} to abs({_x}) + abs({_y}) + abs({_z})
      send "%{_speed}%"
      wait 5 ticks
 
Status
Not open for further replies.