Garry's Mod Wiki

NextBot:GetRangeTo

  number NextBot:GetRangeTo( Vector to )

Description

Returns the distance to an entity or position.

See also NextBot:GetRangeSquaredTo.

Arguments

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

Returns

1 number
The distance