WhereIsPlayer

From NPC for VCMP 0.4 Servers
Revision as of 04:46, 5 December 2022 by Habi (talk | contribs) (Created page with "{{Welcome|desc=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.| params=<syntaxhighligh...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.