Enemies moving instantly to player in behaviour tree

Hey folks,

I’m running a simple behaviour tree to move AI towards the player and attack, however instead of idling for a while and then running to player when in line of sight, they immediately move directly to the player like a teleport when line of sight is first made.

I’ve attached an image of the behaviour tree in question.

First of all you should add some print strings to determine where the issue is. Try adding it after vision check to make sure that that selector returns a good enum (not imediatly returns combat). If thas all good check the move to random location. Some images of vision check would be helpfull.