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

Special Pages



Render Time: 28ms

DB GetPage 3
Generate Html 7
SaveChanges (1) 7
Render Body 0
Render Sidebar 8