Skip to main content
Inspiring
Feb 2, 2026 9:41 PM UTC
Solved

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

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 ? 

 

VirtuallyARealDinosaur
Community Manager
Feb 3, 2026 2:43 PM UTC

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
Feb 3, 2026 2:43 PM UTC

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
Feb 3, 2026 8:21 PM UTC

Thank you ! It did solved the problem :)