Skip to main content
Inspiring
February 2, 2026
Solved

Why is my editor unable to find module 'horizon/avatar_ai_agent'

  • February 2, 2026
  • 2 replies
  • 191 views

Hello,

I can't figure out why I have the error :

[NPCSManager] (2, 121:146) Cannot find module 'horizon/avatar_ai_agent' or its corresponding type declarations.
[NPCSManager] (25, 55:71) Property 'spawnAgentPlayer' does not exist on type 'Entity'.

Do I have to enable some settings ? 

 

Best answer by VirtuallyARealDinosaur

Hello!

If you are experiencing this issue, you may not have enabled the avatar_ai_agent API setting.

To resolve this, go to the "script settings" section, then look under "API." Find the avatar_ai_agent setting and switch it on. For visual guidance, refer to the screenshot provided below.

Let me know if this solves your problem or if you need further assistance!

2 replies

VirtuallyARealDinosaur
Community Manager
February 3, 2026

Hello!

If you are experiencing this issue, you may not have enabled the avatar_ai_agent API setting.

To resolve this, go to the "script settings" section, then look under "API." Find the avatar_ai_agent setting and switch it on. For visual guidance, refer to the screenshot provided below.

Let me know if this solves your problem or if you need further assistance!

TiitouaanAuthor
Inspiring
February 3, 2026

Thank you ! It did solved the problem :)