I’m trying to make a soldier FSM with a patrol cycle and a seeking cycle when the Alarm variable is set as On.
The patroling cycle is working well, but for some reason, when my soldier sees the player, it just rotates in the player’s direction but doesn’t move to him.
Any idea of could be the problem?
Hmm. It is a bit hard to tell from the screenshots, but are there are error logs in the console? Does the Seek action look like running (play icon on the left), or is it not running at all?
As far as I know, it is supposed to be running. I mean, this is what the yellow lines are saying right?
I changed the actions to SubBehavers, to see if this solve the problem, but I have no luck with that. But I notice that the Seek works when I use only a BehaverTree Component on the prefab. But when I add an FSM component, the Seek condition brokes for some reason :/
Hello again and sorry for the late reply.
Yes indeed; yellow lines and box means that the action is running.
Hmm. Could it be that any of your other graphs (or code) alters the transform position of the character at the same time (and thus not letting the character to move because for example you are setting his position at the same time elsewhere) ?
Let me know.
Thank you!
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.