1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How to make so that the player couldn't stop and always went?

Discussion in 'Facepalm' started by ivanRU, Jun 3, 2017.

  1. ivanRU

    ivanRU Creeper

    Messages:
    5
    PHP:
    if(!$p->isMoving()) {
    $p->setMoving(true);
    }
    I tried to do so, but it is clear that this is nonsense.
    Please, help me.
     
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    you would need to setmotion if it's not moving like maybe directional vector so it moves where it looks
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.