Forum Discussion

SoakingRich's avatar
SoakingRich
Start Partner
6 months ago
Solved

"Cannot find module 'horizon/npc' or its corresponding type declarations."

Im trying to use the NPC API but its not available to activate in my world's API settings. The npc module loads correctly in the Profit or Perish template but cant be added to any other world?
  • jackmw94's avatar
    6 months ago

    This is one of Horizon's toggleable APIs.

    Go to "Scripts {}" => "Settings (cog)" => "API" then toggle horizon/npc. Then recompile and you should be in business 👍