Garry's Mod Wiki

NPC:RememberUnreachable

  NPC:RememberUnreachable( Entity ent, number time = 3 )

Description

Makes the NPC remember an entity or an enemy as unreachable, for a specified amount of time. Use NPC:IsUnreachable to check if an entity is still unreachable.

Arguments

1 Entity ent
The entity to mark as unreachable.
2 number time = 3
For how long to remember the entity as unreachable. Negative values will act as 3 seconds.