Discussion in 'Plugin Development' started by NerdsWBNerds, May 6, 2014.
How can I make a plugin that forces one player to look towards another?
You would have to calculate the pitch and yaw so that playerA would face playerB. Then set playerA's location to the same x,y,z value but with the calculated pitch and yaw.
I don't think it's necessary to update the playerA's location, as in get and set.
I haven't compiled it however it should work.
Use the lookAt function, and then just teleport the player. That will also update the player client-side.
True I forgot about that
Separate names with a comma.