Garry's Mod Wiki

NPC:NavSetGoalPos

  boolean NPC:NavSetGoalPos( Vector pos )

Just Added

This was just added in the latest version (2022.06.08). It might only be available on the Dev Branch right now.

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.