Garry's Mod Wiki

Revision Difference

CNavArea:GetRandomAdjacentAreaAtSide#518196

<function name="GetRandomAdjacentAreaAtSide" parent="CNavArea" type="classfunc"> <description>Returns a random <page>CNavArea</page> that has an outgoing ( one or two way ) connection **from** this <page>CNavArea</page> in given direction.</description> <realm>Server</realm> <args> <arg name="navDir" type="number">The direction, in which to look for &lt;page&gt;CNavArea&lt;/page&gt;s, see &lt;page&gt;NavDir&lt;/page&gt;.</arg> <arg name="navDir" type="number">The direction, in which to look for <page>CNavArea</page>s, see <page>NavDir</page>.</arg> </args> <rets> <ret name="" type="CNavArea">The random <page>CNavArea</page> that has an outgoing ( one or two way ) connection **from** this <page>CNavArea</page> in given direction, if any.</ret> </rets> </function>