Garry's Mod Wiki


string NextBot:MoveToPos( Vector pos, table options )


To be called in the behaviour coroutine only! Will yield until the bot has reached the goal or is stuck


1 Vector pos
The position we want to get to
2 table options
A table containing a bunch of tweakable options.

number lookahead - Minimum look ahead distance.

number tolerance - How close we must be to the goal before it can be considered complete.

boolean draw - Draw the path. Only visible on listen servers and single player.

number maxage - Maximum age of the path before it times out.

number repath - Rebuilds the path after this number of seconds.


1 string
Either "failed", "stuck", "timeout" or "ok" - depending on how the NPC got on

Page Links

Special Pages



Render Time: 201ms

DB GetPage 83
Generate Html 6
SaveChanges (1) 97
Render Body 0
Render Sidebar 12