Garry's Mod Wiki

NPC:GetPathDistanceToGoal

  number NPC:GetPathDistanceToGoal()

Description

Returns the distance the NPC is from Target Goal.

Returns

1 number
The number of hammer units the NPC is away from the Goal.