Essentials - /speed [fly] - axis acceleration Y

Discussion in 'Plugin Development' started by Cerebral_agony, Dec 10, 2018.

Thread Status:
Not open for further replies.
  1. Offline

    Cerebral_agony

    Hello!
    I'm need to make acceleration on axis Y, but I don't know how to make this..
    Also Idk where better to place the code...
    Sorry, if this a dumb question
     
  2. What are you trying to do? Change the flying speed of a player? If so, how? Do you want the value to change while the player is moving up? If you want to create acceleration, I would try to check if the player is moving up, and slightly increase their flying speed every time, so that they accelerate. You would also have to check if they were not moving up anymore, and set the value back down, so it would be more like acceleration in the sense that it would only get larger as it progressed, if that makes any sense.
     
Thread Status:
Not open for further replies.

Share This Page