Garry's Mod Wiki

Revision Difference

NextBot:FindSpots#510748

<function name="FindSpots" parent="NextBot" type="classfunc">⤶ <description>Returns a table of hiding spots.</description>⤶ <realm>Server</realm>⤶ <file line="189">gamemodes/base/entities/entities/base_nextbot/sv_nextbot.lua</file>⤶ <args>⤶ <arg name="specs" type="table">This table should contain the search info.&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&lt;page&gt;string&lt;/page&gt; type - The type (optional, only &#x27;hiding&#x27; supported)&#xA;&#xA;&lt;page&gt;Vector&lt;/page&gt; pos - the position to search.&#xA;&#xA;&lt;page&gt;number&lt;/page&gt; radius - the radius to search.&#xA;&#xA;&lt;page&gt;number&lt;/page&gt; stepup - the highest step to step up.&#xA;&#xA;&lt;page&gt;number&lt;/page&gt; stepdown - the highest we can step down without being hurt.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="table">An unsorted table of tables containing:⤶ ⤶ ⤶ ⤶ ⤶ <page>Vector</page> vector - The position of the hiding spot⤶ ⤶ <page>number</page> distance - the distance to that position</ret>⤶ </rets>⤶ </function>⤶ ⤶