IsPlayerInRangeOfPoint

From NPC for VCMP 0.4 Servers
Revision as of 22:25, 7 January 2023 by Habi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Description:
Checks whether a player is within an area ( around a point with specified radius ).


Parameters:

(playerid, radius, point)

playerid : The ID of the player whom you want to check if within an area.
raidus : The radius (as Float) about a point you want to check if the player is within.
point : This is a Vector which has 3 components. Checks if the player is around this point.


Return Values:
true, if the player is within the circle; false, if not and null if the player is not connected.