Pull back entity

Discussion in 'Plugin Development' started by thatdubstepgamer, Sep 24, 2013.

Thread Status:
Not open for further replies.
  1. Hello im working on a plugin right now and I cant figure out when I right hook a entity mob/player it pulls them back to me? Please help I would be so ever grateful
  2. Offline


    It already does that for mobs. For players, you'll have to set the players velocity.
  3. Offline


    You can do it with vectors, I think it's something like target.setVelocity(target.getLocation().toVector().subtract(player.getLocation().toVector)).
  4. Offline


    the other way round ;-) fromTargetToPlayer = player.subtract(target)
Thread Status:
Not open for further replies.

Share This Page