Garry's Mod Wiki

NextBot:FindSpot

  Vector NextBot:FindSpot( string type, table options )

Description

Like NextBot:FindSpots but only returns a vector.

Arguments

1 string type
Either "random", "near", "far".
2 table options
This table should contain the search info.
  • string type - The type (Only hiding for now)
  • Vector pos - the position to search.
  • number radius - the radius to search.
  • number stepup - the highest step to step up.
  • number stepdown - the highest we can step down without being hurt.

Returns

1 Vector
If it finds a spot it will return a vector. If not it will return nil.