I have these cop enemies who will chase the player when the overlap a “trespassing box blueprint”. For whatever reason, the only chase the player when the player enters ONE SPECIFIC box. If I have multiple, none chase the player in any of the others. Why is this?
I used Booleans that set trespassing True or False. That indicates wheats there’s an “AI move to” active or not.
The problem lies within the fact that you are using Get Actor Of Class “Trespass Box”
You are only getting the 1st box in the level that unreal finds & not the closest to the policeman.
So you are triggering a box probably half way across the level.
You should reverse the logic. Upon entering the trespass box you should do a box trace with the extent of the trespass box and filter by Police men. Then all found police men should have their bool checked to be “on alert”. Then once they see you if the “alert” bool is on then they should chase you.
That information is important though. If I delete it, the police chase me on sight. What is there now is so if they see me AND I’m trespassing they chase me.
The code you sent doesn’t appear to be doing anything while mine, while broken, is. Even when I disconnect my code to use only yours it doesn’t do anything.
I’m trying to figure out why that is.