Back to TPG

TPG.Util.IsWithinDistance

S🏷️ Util

Part of TPG namespace

TPG.Util.IsWithinDistance(ply, point, distance)
View on GitHub|gamemode/core/sh_utils.lua:213-215
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Is a player within a radius of a point? Compares squared distances, so it is safe to call every tick.

Parameters

NameTypeDescription
plyPlayer
pointVector
distancenumberRadius in Source units.

Returns

TypeDescription
boolean

Examples

No examples available.

Used In

No usages found in the codebase.