Garry's Mod Wiki

PathFollower:MoveCursorToClosestPosition

  PathFollower:MoveCursorToClosestPosition( Vector pos, number type = 0, number alongLimit = 0 )

Description

Moves the cursor of the path to the closest position compared to given vector.

Arguments

1 Vector pos
2 number type = 0
Seek type

0 = SEEK_ENTIRE_PATH - Search the entire path length

1 = SEEK_AHEAD - Search from current cursor position forward toward end of path

2 = SEEK_BEHIND - Search from current cursor position backward toward path start

3 number alongLimit = 0