Add AI Perception Component Node
I have an AI character and initially I had added the AI Perception component on the character. But that didn't work in the built version of the game. So I have the "Add AI Perception Component" node on Event Begin Play. And that actually works when I build the game. Although I have run into another problem. I noticed that the "detection by affiliation" option in the BP node is empty. And my AI character cannot sense the player character.
How do I go about adding the detection by affiliation options in the Blueprint Node?
Hmm... It actually gets larger in the packaged version. I've seen Mieszko say that the affiliation feature was not working properly but that was a while ago. I avoid that feature at the moment. I turn on all affiliations and filter out friendlies when the perception event fires (using my own affiliation enum).
One other thought: is the perception component in the AI controller? I've heard that putting it in the character can be problematic.
Follow this question
Once you sign in you will be able to subscribe for any updates here