Hi, I am using AC 1.60.7 and Unity 2017.3. I set the Pathfinding update to 2 seconds in the Settings. I added an NPC using the Object Add feature (relative to nothing) to make the game scalable. Then I attempted to Walk to a Marker. However, the NPC does not move and I keep seeing "Cannot pathfind without a Paths component."
The Paths component is actually on the NPC, which was created automatically using the NPC creation feature. I tried with other NPCs and get the same result. What should I do?
Comments
I shall attempt to recreate the issue, thanks for posting. Are your other NPCs also added in using the Object: Add or remove Action, or is this Action affecting characters present in the scene file as well?
As a test, try using the Engine: Wait Action to wait, say, 0.5s, once they've been spawned but before making them move. Are they then able to move?
If your NPCs are all spawned at runtime, then your Actions will have to refer to them by Constant ID number - which should auto-generate and be displayed in the Action. Is this the case, and are you using scene-based ActionLists (e.g. Custsenes) or ActionList asset files?
However, the "Recalculate pathfinding?" option only appears in the Object: Teleport Action. You hadn't mentioned this before - what is your complete ActionList, properties included?
If you're just using the teleport Action to place the NPCs after spawning, try instead using the "Relative to" option in Object: Add or remove.