|
Post by raildoc on Apr 2, 2020 6:12:06 GMT
I tried to set up simple_AI, everything were good, enemy recieves damage and can detect player but navmeshagent doesn't move at all. As you can see on image: destination set correctly, and also it shows velocity = 1. If I disable AI Controller at run time it starts to move so this script causes this problem, but I don't know what exactly.
|
|
|
Post by xianno on Apr 5, 2020 12:46:55 GMT
I tried to set up simple_AI, everything were good, enemy recieves damage and can detect player but navmeshagent doesn't move at all. As you can see on image: destination set correctly, and also it shows velocity = 1. If I disable AI Controller at run time it starts to move so this script causes this problem, but I don't know what exactly. I had same issue and switched on FSM AI. This Simple_AI is a free script from Invector Template, it is not supposed to be used for complexe AI Behaviours. However, try to change the run animation on your character, for some strange reason this bug was happening for some AI and not for others on my game. If I used a specific run animation, it was working...
|
|
|
Post by raildoc on Apr 5, 2020 16:23:53 GMT
It's strange, but it works! Thank you, but now, as I understand, I cant use my run animation because it's kind of broken, right?
|
|
|
Post by Invector on Apr 6, 2020 17:56:29 GMT
Does your new animation have root motion? the simple melee ai is driven only by root motion
|
|
|
Post by raildoc on Apr 7, 2020 4:07:26 GMT
Does your new animation have root motion? the simple melee ai is driven only by root motion Yes, root motion was solution of this problem, now it works, thank you!
|
|