Hi! Just run into a weird thing when started to also spawn my enemy AI. When spawned it acts like the placed ones in the map, but the main difference is that they keep ignoring my player character. I’m using the SpawnAIfromClass node, and besides this the moving works. I’ve notied in simulation that the placed ones a greyed out while spawned ones get a yellow highlight. Any ideas what could cause this? Much appreciated.
Hey there @M63ogdan1! Welcome to the community! Whenever working with AI it’s a good idea to verify that they are receiving the stimulus. If possible, have the AI print out when they detect the player first. If they do detect the player, we will look at how the stimulus is processed and if pathing is the problem. If it doesn’t detect the player, we would then look into the detection portion.
Hello @SupportiveEntity! I’ve tested and it seems that they do sense my player character, but still only the placed one initiate the attack. See attached screenshot from the behavior tree. The attack is triggered by a pawn sense that I added to the AI character.
Behavior tree looks good. I see you have the levels menu up, are you working on different streamed in levels in the meantime? They should be able to chase and attack the player if they are on their nav mesh, but if it’s a different level they may have trouble. Try and print out or use the AI debugger for every step of the process between detection, movement, acquisition, and finally the attack. Going to have to nail down which node on the task is failing.
You can also Debug a bit more in depth the the AI debugger: