Garry's Mod Wiki

NPC:IgnoreEnemyUntil

  NPC:IgnoreEnemyUntil( Entity enemy, number until )

Just Added

This was just added in the latest version (2022.06.08). It might only be available on the Dev Branch right now.

Description

Makes the NPC ignore given entity/enemy until given time.

Arguments

1 Entity enemy
The enemy to ignore.
2 number until
How long to ignore the enemy for. This will be compared to CurTime, so your value should be based on it.