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

setMovement

Discussion in 'Facepalm' started by LucGamesDE, Jun 4, 2017.

  1. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    I have a player $p and a entity pig $e. How can I now set the pigs yaw and pitch in $p's direction? It would be great to handle it per packet for each player.

    I only know how to change the yaw and pitch using this:
    PHP:
    $e->setMovement($x$y$z$yaw$pitch$headYaw);
     
  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.