Garry's Mod Wiki

Revision Difference

NextBot:FindSpot#517706

<function name="FindSpot" parent="NextBot" type="classfunc"> <description>Like <page>NextBot:FindSpots</page> but only returns a vector.</description> <realm>Server</realm> <file line="201">gamemodes/base/entities/entities/base_nextbot/sv_nextbot.lua</file> <args> <arg name="type" type="string">Either &quot;random&quot;, &quot;near&quot;, &quot;far&quot;</arg>⤶ <arg name="options" 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 (Only&#x27;hiding&#x27; for now)&#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>⤶ <arg name="type" type="string">Either "random", "near", "far"</arg>⤶ <arg name="options" type="table">This table should contain the search info.⤶ ⤶ ⤶ ⤶ ⤶ <page>string</page> type - The type (Only'hiding' for now)⤶ ⤶ <page>Vector</page> pos - the position to search.⤶ ⤶ <page>number</page> radius - the radius to search.⤶ ⤶ <page>number</page> stepup - the highest step to step up.⤶ ⤶ <page>number</page> stepdown - the highest we can step down without being hurt.</arg>⤶ </args> <rets> <ret name="" type="Vector">If it finds a spot it will return a vector. If not it will return nil.</ret> </rets> </function>