Hey everyone,
Not sure what on earth is going wrong here. I have NPCs that move along paths just fine as long as I don't have any cutscenes at any of the nodes. If I do, then they'll just flat out refuse to continue moving once the cutscene has finished running, even if I set the NPC to continue moving along path.
I've even tried to set a cutscene that just has an engine wait, and then tried various combinations of telling the NPC to resume last path etc. etc. but nothing works - if I put a cutscene on a node, it just won't move after.
Has anyone encountered this before?
NPC inspector:
Path:
Cutscene used for testing:
Comments
Thanks for the suggestions! I tried setting the NPC to "Move on a new path" instead of continue, with he same results. With the debugger running, it shows that the action list does actually close off as it should.
Here's something odd I notice today, I get the problem if I let this action list run its course automatically in the game as it should, but if instead when the game is running, and i go into the action list editor and manually triggers the action list with the little play button in the top right corner, then it works as intended!?! Could this be a bug of some sort?
I ran into a similar problem a while ago, not sure you're issue is caused by the same as mine was but worth checking.
http://www.adventurecreator.org/forum/discussion/4584/resuming-path-after-running-cutscene#latest
Essentially my issue was that I was in scene view (I'd run the game and then immediately switch to scene view). I did this because I needed to check if some objects that were invisible in game but visible in scene view were moving correctly when they were supposed to (this was triggered by the NPC reaching a node and playing a cutscene). I noticed that the NPC would then refuse to continue along the path after the playing the cutscene action list despite being told to do so. I inadvertently found the issue when I ran the game and had to answer the doorbell (so I didn't immeditaly switch to scene view) when I got back the NPC had continued on and moved along the rest of the path!
That sounded pretty promising as I was checking things in scene view - alas I'm not having any luck doing it directly in the game view either. To be on the safe side, I compiled the game and ran the executable as well and unfortunately that doesn't resolve the issue either.
I can as a workaround I belive just not rely on paths and have an on-load action list that make use of 2d markers for NPCs to reach instead so it's not the end of the world... peculiar problem all the same.
So the action list that sets the character to move on the path is a separate action list that gets called by the onStart actionlist. The actionlist itself the the NPC reaches is embedded in the path node itself so it's neither an onStart or onLoad I guess?
I'll try playing around with different ways of triggering it to see if I can get any sense out of it - thanks for the tip!