Forum Discussion

SoakingRich's avatar
SoakingRich
Start Partner
5 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?

  • 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 👍

3 Replies

  • 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 👍

    • SoakingRich's avatar
      SoakingRich
      Start Partner

      Thanks, but it seems like its actually not there in the list -   is this still a gradual rollout?

       

      • jackmw94's avatar
        jackmw94
        MHCP Partner

        Apologies, just reread your whole question!