Help with Wander Script

Can anyone look at my Gist and see something I’m missing perhaps?

within StartWandering() the print gets called, but the startmoveaction never happens, as You can tell I even commented out the original code to try a basic move action to see what is going on to no luck.

I had other prints to follow the code and tell me the timesincelastwander and currentwanderwaittime and they were all updating properly with my commented out code, but for whatever reason startmoveaction doesnt want to work…

I found the answer (Spoiler for anyone curious to find it):

Within DefaultBehaviour I forgot to add an else after the if for ReturnToSpawnPosition so both would fire off in a row, and the npc wouldn’t move.

Good job spotting that!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms