CNavArea/GetIncomingConnectionsAtSide

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
{{Func
 
{{Func
|Description=Returns a table of all the {{Type|CNavArea}}s that have a one-way incoming connections '''to''' this {{Type|CNavArea}} from given direction.
+
|Description=Returns a table of all the {{Type|CNavArea}}s that have a one-way connection '''to''' this {{Type|CNavArea}} from given direction.
  
 
If a {{Type|CNavArea}} has a two-way connection '''to or from''' this {{Type|CNavArea}} then it will not be returned from this function, use {{ClassFunction|CNavArea|GetAdjacentAreas}} to get outgoing ( one and two way ) connections.
 
If a {{Type|CNavArea}} has a two-way connection '''to or from''' this {{Type|CNavArea}} then it will not be returned from this function, use {{ClassFunction|CNavArea|GetAdjacentAreas}} to get outgoing ( one and two way ) connections.
Line 15: Line 15:
 
{{Ret
 
{{Ret
 
|type=table
 
|type=table
|desc=A table of all {{Type|CNavArea}}s with incoming one-way connections '''to''' this {{Type|CNavArea}} from given direction. Returns an empty table if there are no one-way incoming connections '''to''' this {{Type|CNavArea}} from given direction.
+
|desc=A table of all {{Type|CNavArea}}s with one-way connection '''to''' this {{Type|CNavArea}} from given direction.<br/>Returns an empty table if there are no one-way incoming connections '''to''' this {{Type|CNavArea}} from given direction.
 
}}
 
}}

Revision as of 03:23, 2 June 2015

 CNavArea:GetIncomingConnectionsAtSide( )

Description

Returns a table of all the CNavAreas that have a one-way connection to this CNavArea from given direction.

If a CNavArea has a two-way connection to or from this CNavArea then it will not be returned from this function, use CNavArea:GetAdjacentAreas to get outgoing ( one and two way ) connections.

See CNavArea:GetIncomingConnections for a function that returns one-way incoming connections from all sides/directions.

Arguments

number navDir

The direction, from which to look for CNavAreas with one-way incoming connections, see NavDir_ Enums.

Returns

table

A table of all CNavAreas with one-way connection to this CNavArea from given direction.
Returns an empty table if there are no one-way incoming connections to this CNavArea from given direction.
Personal tools
Navigation