Anyone have any experience with custom npcs?




I tried this method and the audio is still not playing when I run .play(). Did you ever figure this out?

I did the same except i used the MoveTo function to constantly moving the audio player to the npc with 0.5 sec of delay, but you need to get an audio device as many npcs you have at the same time in your map…
I used that with 16 npcs at the same time and it works pretty well, but it’s still a workaround, hope we get soon a full feature for this

1 Like

I am trying to replicate this way of doing it, but I am having trouble getting the TeleportTo function to work within an NPC, how did you set yours up? I also have wanted to give my NPC a roam state and a chase state but can never seem to get it to work.

what is Mon in your code?

It is the npc ('Monster") agent

1 Like

Did you add this with @editable?
Thanks for the answers

No it is part of a npc behavior script. So there is no need for an editable for the npc. It’s like calling itself