AI service not working

4Choped
Sun, 05 Aug 2018 19:07:43 +0000
AI

First off, I dont know if this is the appropiate Section. Sorry if this shouldnt be posted here.

Anyways, I have a weird problem with AI. Let me explain.

I made an enemy eith a very basic AI:
-Youre far? He goes towards you (Here I use a Service to make it go with 400 speed)
-Youre close? He takes some distance from you (Same Service 400 speed)
-If youre not so far not so close from him, he moves in circles around you (Same Service BUT 100 speed)

The problem I have is with this Service, because when it should go with 100 speed, it doesnt work, it simply keeps the same 400 speed, BUT when I open its Behavior Tree and play again, it fixes!
Why is that?

Note: It fixes until I close Unreal. If I open Unreal again, it fails again, except if I open rhe Behavior Tree

2 posts - 1 participant