Nothing Special   »   [go: up one dir, main page]

Garry's Mod Wiki

NPC:NavSetGoal

  boolean NPC:NavSetGoal( Vector pos, number length, Vector dir )

Description

Works similarly to NPC:NavSetRandomGoal.

Arguments

1 Vector pos
The origin to calculate a path from.
2 number length
The target length of the path to calculate.
3 Vector dir
The direction in which to look for a new path end goal.

Returns

1 boolean
Whether path generation was successful or not.