Garry's Mod Wiki

Garry's Mod Wiki

  table NPC:GetKnownEnemies()

Description

Returns all known enemies this NPC has. The enemy table is updated with NPC:UpdateEnemyMemory and NPC:ClearEnemyMemory, meaning other entities may be in enemies list even though your NPC doesn't hate it.

See also NPC:GetKnownEnemyCount

Returns

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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...