Garry's Mod Wiki

Revision Difference

navmesh.CreateNavLadder#552390

<function name="CreateNavLadder" parent="navmesh" type="libraryfunc">⤶ <description>Creates a new <page>CNavLadder</page>.</description>⤶ <realm>Server</realm>⤶ <added>2023.09.16</added>⤶ <args>⤶ <arg name="top" type="Vector">The top position of the ladder.</arg>⤶ <arg name="bottom" type="Vector">The bottom position of the ladder.</arg>⤶ <arg name="width" type="number">Width for the new ladder.</arg>⤶ <arg name="dir" type="Vector">Directional vector in which way the ladder should be facing. Please note that ladders can only face in the 4 cardinal directions - NORTH, SOUTH, WEST, EAST.</arg>⤶ <arg name="maxHeightAboveTopArea" type="number" default="0">If above 0, will limit how much the top of the ladder can be adjusted to the closest <page>CNavArea</page> when automatically connecting the newly created ladder to pre-existing nav areas.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="CNavLadder">The new <page>CNavLadder</page> or <page>nil</page> if we failed for some reason.</ret>⤶ </rets>⤶ </function>⤶ ⤶