Garry's Mod Wiki

Path

  PathFollower Path( string type )

Description

Creates a path for the bot to follow using one of two types (Follow or Chase)

Follow is a general purpose path. Best used for static or infrequently updated locations. The path will only be updated once PathFollower:Update is called. This needs to be done manually (typically inside the bots BehaveThread coroutine.

Chase is a specifically optimized for chasing a moving entity. Paths of this type will use PathFollower:Chase

Arguments

1 string type
The type of the path to create, must be "Follow" or "Chase"

Returns

1 PathFollower
The path