I am trying to make an enemy AI and have followed a few tutorials. One problem I am finding with all tutorials is that the enemy just stops moving after seeing the player, then losing sight of the player. I would like the enemy to go back to its roaming algorithm when unable to see the player. I wonder if there is a way to find out if the enemy can see the player or not at all times, although I am unable to find anything like that.
Hey @G0at_Boy, welcome to the forums!
So there’s not a lot anyone can do without seeing what you’re working with. Can you post your code in some screen snips? And your Behavior Tree/Blackboard (if you’re using one)? The more informative you can be the more we’ll be able to help!
nvm I figured it out