I have no idea what I changed or when, but suddenly my Follow AI stopped working. Then I noticed no one would move at all- under any circumstances. Multiple NPCs, multiple prefab, imported prefabs- no one. Only the character will move.
I'm also getting Null Reference exceptions like crazy. I've been trying to fix this for a good 3 days. PLEASE help.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
The MoveAI Follow Leader that is assigned to my blue pants NPC after the event does not seem to list a target, and says target position is all zeroes.
The event itself does trigger. I can walk up to that guy, trigger the dialogue, and the MoveAI appears on him in the inspector but he just won't move. Also, if I move scene after this, he appears in the next scene, but again- not moving, and floating in the air....
I'm sorry about the errors scene in my screenshot, they are misleading and I have solved them.
As for the move AI, make sure that the game object's combatant is added to the player group, not another newly created one.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
- the combatant has that move AI selected
- the move AI is set up correctly (for following the group leader)
- the move AI's Move Component Settings are correct
The move AI just finds target positions, actual movement is handled by the used move component. E.g. if you're using Default, you most likely also want to enable Add Component to automatically add it to the game object.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Unfortunately, I still have not been able to solve this problem.
The MoveAI is set correctly- using NavMesh agent. I have a MoveAI for waypoints that is working correctly (even on the same character!) but when I try to switch to Follow Leader- it's as if the leader doesn't exist. There is no target listed in his Move AI component, and the target coordinates still list all zeroes.
As far as I can tell- everything is set right... but it still doesn't work. Even stranger- it used to work. I'm not sure what changed.
Below are links to 5 images showing the Object Inspector, the Ork Follow AI, and the Combatant Move AI setting
https://postimg.cc/yJ8KF9Z1
https://postimg.cc/5HKVp0Bw
https://postimg.cc/qhtdFTwW
https://postimg.cc/k6kd3phG
https://postimg.cc/LgLFH3rT
Thank you, really really thank you for your help on this. I plan on joining your Patreon funders soon!
Combatants only follow their group leader, i.e. he'd only follow the player after joining the player group.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
So, what's the setup of the join group node?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!