Garry's Mod Wiki

NextBot:FindSpots

  table NextBot:FindSpots( table specs )

Description

Returns a table of hiding spots.

Arguments

1 table specs
This table should contain the search info.
  • string type - The type (optional, only hiding supported)
  • 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 table
An unsorted table of tables containing:
  • Vector vector - The position of the hiding spot
  • number distance - the distance to that position