Check if player is looking at entity

Discussion in 'Plugin Development' started by victor2748, Oct 11, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    victor2748

    Hey all, I have this problem: I need to check if a player is looking at an entity (just like if he was looking at at an enderman, only a different entity. What is the best way of doing it?
     
  2. Offline

    Skionz

    Get the players line of sight. Check if the entity is in the players line of sight.
     
Thread Status:
Not open for further replies.

Share This Page