Revision Difference
CNavArea:GetSpotEncounters#550611
<function name="GetSpotEncounters" parent="CNavArea" type="classfunc">
<description>
Returns all spots that we would encounter when we move to another navmesh. It seems to be broken currently?
<validate>⤶
How should this be used exactly? It doesn't accept another <page>CNavArea</page> to check with. ⤶
If it is ⤶
[this](https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/mp/src/game/server/nav_area.h#L401) ⤶
function, then it should accept another CNavArea if I'm not wrong. ⤶
Please adjust this page if you find out how this function works.⤶
</validate>⤶
Returns all possible path segments through a <page>CNavArea</page>, and the dangerous spots to look at as we traverse that path segment.
</description>
<added>2023.06.21</added>⤶
<realm>Server</realm>
<rets>
<ret name="encounters" type="table">A Table containing all spots that you encounter.</ret>⤶
<ret name="encounters" type="table">A sequential list of spot encounters in the following format:⤶
* <page>CNavArea</page> **from** - What <page>CNavArea</page> the path segment is coming from⤶
* <page>Vector</page> **from_pos** - Origin position of the path segment⤶
* <page>number</page> **from_dir** - Source [Enums/NavDir](NavDir) direction of the path segment⤶
* <page>CNavArea</page> **to** - What [CNavArea]() the path segment is going towards⤶
* <page>Vector</page> **to_pos** - Target position of the path segment⤶
* <page>number</page> **to_dir** - Target [Enums/NavDir](NavDir) direction of the path segment⤶
* <page>table</page> **spots** - List of spots to look at, a sequential list of the following structures:⤶
* <page>Vector</page> **pos** - Position of the spot⤶
* <page>table</page> **flags** - Type of spot this is⤶
* <page>CNavArea</page> **area** - The nav area the spot belongs to⤶
⤶
⤶
</ret>⤶
</rets>
</function>