Garry's Mod Wiki

NPC:GetKnownEnemyCount

  number NPC:GetKnownEnemyCount()

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 known enemy count of this NPC.

See also NPC:GetKnownEnemies

Returns

1 number
Amount of entities that this NPC knowns as enemies.