A brief intro to the scenario; I am working on communication between my NPCs. Basically I want that if an NPC spots the player other NPCs within vision range of said NPC will receive notification also. The way I want to do this is by creating an array of all actors to which I want cast an event if the actor is visible by the NPC that spots the player.
My current setup; I am largely following this tutorial series by Asher Einhorn (UE4 Tutorial Series - AI - YouTube) I have created a btservice blueprint. At “Event Receive Activation AI” I “Get all actors of class” and save that to an array. When I do this of course the actor itself gets added to the array and I need to remove it from the array as I will otherwise cast the event to the very npc that spots the player. I tried with the “Remove” node but that doesnt seem to work (it also appears to be supposed to remove ALL instances of a specific actor type - not just this particular instance)
Also; Is there any way I can call an event in a BTService used by a particular NPC? What I have currently, I can call an event on the NPC itself but that doesnt help me as I have to reach the BTService and call an event there instead - ?
Any help would be greatly appreciated