1. Hello!

    Can I determine if player's target is before player or behind player?

    Not really. You can get coordinates sometimes, but you would still need the direction the player is facing. I'm not sure if you can get that right now, but that's the process you'd use.

    That was my first idea, but unfortunately Bliz does not give API to get NPC coords :( I forgot to mention that NPC was target.

    Then no =)