Garry's Mod Wiki

Revision Difference

CNavArea:GetIncomingConnectionDistances#552770

<function name="GetIncomingConnectionDistances" parent="CNavArea" type="classfunc">⤶ <description>⤶ Returns a table of all the <page>CNavArea</page>s that have a one-way connection **to** this <page>CNavArea</page> and their pre-computed distances.⤶ ⤶ If a <page>CNavArea</page> has a two-way connection **to or from** this <page>CNavArea</page> then it will not be returned from this function, use <page>CNavArea:GetAdjacentAreaDistances</page> to get outgoing (one and two way) connections.⤶ </description>⤶ <added>2023.10.18</added>⤶ <realm>Server</realm>⤶ <args>⤶ <arg name="dir" type="number" default="nil">If set, will only return areas in the specified direction. See <page>Enums/NAVDIR</page>.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="table">A list of tables in the following format:⤶ * <page>CNavArea</page> **area** - the area that is connected to this area.⤶ * <page>number</page> **dist** - Distance from the area to this area.⤶ * <page>number</page> **dir** - Direction in which the area is in relative to this area.⤶ </ret>⤶ </rets>⤶ </function>⤶ ⤶