Garry's Mod Wiki

PathFollower:GetClosestPosition

  Vector PathFollower:GetClosestPosition( Vector position )

Description

The closest position along the path to a position

Arguments

1 Vector position
The point we're querying for

Returns

1 Vector
The closest position on the path