Garry's Mod Wiki

NPC:GetKnownEnemies

  table NPC:GetKnownEnemies()

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

Returns all known enemies this NPC has.

See also NPC:GetKnownEnemyCount

Returns

1 table
Table of entities that this NPC knowns as enemies.