Skip to content

GetNPCsList

Retrieves a list of all npc entities.

CAUTION

Do not modify the returned array. It is a reference to the internal array.

WARNING

This array stores absolutely all NPCs on the map: Techies mines, Templar Assassin traps, heroes, creeps, etc.
If you want to get only the array of heroes, we recommend using the GetHeroesList function

IMPORTANT

If a npc is never seen once during the game, it probably won't be in this array.


GetNPCsList()NPC[]

Returned:

  • NPC[] - An array of all npc entities.