Is there any way to have pawn sensing exclude specific classes of pawns?

cherking
Mon, 25 Jun 2018 20:02:55 +0000
AI

I have an RTS camera character class that the player controls. I also have AI controlled character classes. I am working on the AI behavior, and I set it so that these AI controlled characters will follow each other when they sense each other via pawn sensing. However, they were only sometimes following each other and I realized that this was because most of the time they were focused in on the camera character that the player controls. Is there a way to set pawn sensing to ignore certain classes of characters?

I’ve tried unchecking only see players, but this doesn’t entirely ignore the RTS camera, i.e. when the camera is still in the pawn sensing range it will take precedence over other pawns. I have also tried comparing the pawn sensed with the object equal method, and preventing action if the pawn is the RTS camera but to no avail.

5 posts - 1 participant