Garry's Mod Wiki

NPC:NavSetGoalPos

  boolean NPC:NavSetGoalPos( Vector pos )

Description

Creates a path to closest node at given position. This won't actually force the NPC to move.

See also NPC:NavSetRandomGoal.

Arguments

1 Vector pos
The position to calculate a path to.

Returns

1 boolean
Whether path generation was successful or not.