Garry's Mod Wiki

NPC:HasObstacles

  boolean NPC:HasObstacles()

Description

Returns true if the current navigation has an obstacle, this is different from NPC:GetBlockingEntity, this is for virtual navigation obstacles put by AI's local navigation system to prevent movement to the marked area, forcing NPC to steer around, for example.

Returns

1 boolean
true if the current navigation has an obstacle.