GetClosestPlayer

From NPC for VCMP 0.4 Servers
Revision as of 05:26, 27 December 2022 by Habi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Description:
Gets the closest player to an NPC


Parameters:

(checkteam=false)

checkteam: If this optional parameter is provided true, the id of the closest player whose team id is not that of npc will be returned.


Return Values:
The playerid of the closest player according to the parameters specified or 255 if there is no such closest player. It checks only players streamed in.