Solved Levitate Player

Discussion in 'Plugin Development' started by stonebloodtv, Dec 26, 2014.

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

    stonebloodtv

    Hello,
    i need make a spell for levitate a player.

    I use the velocity for eject player of ground and i need freeze the player 5second before return on ground ..
    if you know a easy solution for make this...

    Thank you :)
     
  2. Offline

    mythbusterma

    @stonebloodtv

    If they're levitating, in a PlayerMoveEvent, cancel any downward velocity.
     
    stonebloodtv likes this.
  3. Offline

    nitrousspark

    @mythbusterma That would be severely glitchy on the client-side.
    @stonebloodtv Heres what i recommend; set their allow flight to true, then set them to flying. Teleport them to the place you want the levitate them, then like mythbusterma was saying, listen to the PlayerMoveEvent and cancel vertical movement and horizontal movement if you don't want them to move at all.
     
    stonebloodtv likes this.
  4. Offline

    Skionz

    stonebloodtv likes this.
  5. Offline

    stonebloodtv

    Thank you so much guys !
     
Thread Status:
Not open for further replies.

Share This Page