Garry's Mod Wiki

PathFollower:GetHindrance

  Entity PathFollower:GetHindrance()

Description

We advise against using this. It may be changed or removed in a future update. Currently always returns NULL due to internal implementation of Lua Nextbots, where nothing is considered a hindrance, so do not try to use.

Returns the entity the bot is currently trying to avoid.

Returns

1 Entity
The current path hindrance, if any.