Garry's Mod Wiki

NPC:HasObstacles

  boolean NPC:HasObstacles()

Description

Returns true if the current navigation has a obstacle, this is different from NPC:GetBlockingEntity, this includes obstacles that it can steer around.

Returns

1 boolean
true if the current navigation has a obstacle.