WhereIsPlayer

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search


Description:
Consider the situation in which a player is near to npc. This function gives an angle in radians relating to the position of the player.


Parameters:

NoParams


Return Values:

The angle from where the npc is facing towards to where the player is. 0 means player is infront. Positive values means player is to the left of npc and negative values indicate he is on the right side. Values range from -PI to PI.




Related Functions

The following functions may be helpful as they relate to this function in one way or another.