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

How make human following player behind he

Discussion in 'Development' started by kaliiks, Jan 20, 2017.

  1. kaliiks

    kaliiks Zombie

    Messages:
    250
    I can only make human following player, but how to follow behind player
    PHP:
    public function onMove1(PlayerMoveEvent $e)
    {
        
    $player $e->getPlayer();

        
    $pk = new MovePlayerPacket();
        
    $pk->eid 3956;
       
    $pk->yaw $player->yaw;
        
    $pk->$player->x;
        
    $pk->$player->4;
        
    $pk->$player->z;
        
    $pk->pitch $player->pitch;
        
    $player->dataPacket($pk);
        {
        }
    }
     
  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.