Garry's Mod Wiki

NextBot:GetRangeSquaredTo

  number NextBot:GetRangeSquaredTo( Vector to )

Description

Returns squared distance to an entity or a position.

See also NextBot:GetRangeTo.

Arguments

1 Vector to
The position to measure distance to. Can be an entity.

Returns

1 number
The squared distance