After I followed the basic behaviour tree tutorials. I thought I’d edit it to my needs. I want to find instances of a specific actor class. Then I want to check the line of sight to this and aggro if it was found.
However, running a foreach from the 'Get actors by class ’ node gives me compile errors (which are not there when doing this in a normal blueprint). What am I doing wrong?
I will take a screenshot later today, but maybe you guys can already tell me I’m doing something stupid.
Thanks for your reply. After I made my own foreach loop I figured out what caused this strange problem/bug. I had to delete the stuff in the lower left corner which was old tutorial blueprint stuff. Although it said the upper ForeachLoopBreak was the problem, it seems this (not connected) code down below was causing trouble.
So for everyone else running into problems like these. Remove redundant blueprint code, even though it might not be connected. Now everything works like a charm, my AI is alive