Garry's Mod Wiki

Revision Difference

NPC:NavSetRandomGoal#510498

<function name="NavSetRandomGoal" parent="NPC" type="classfunc">⤶ <description>Creates a random path of specified minimum length between a closest start node and random node in the specified direction.</description>⤶ <realm>Server</realm>⤶ <args>⤶ <arg name="minPathLength" type="number">Minimum length of path in units</arg>⤶ <arg name="dir" type="Vector">Unit vector pointing in the direction of the target random node</arg>⤶ </args>⤶ </function>⤶ ⤶