Garry's Mod Wiki

NextBot:MoveToPos

string NextBot:MoveToPos( Vector pos, table options )

Description

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

Arguments

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.

Returns

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

Page Links


Special Pages


Wikis

?

Render Time: 40ms

DB GetPage 4
Generate Html 14
SaveChanges 9
Render Body 0
Render Sidebar 11