Quickie Blueprint Example: Spawn a Replicated Actor on the server-side using Blueprint

How to assign a targeting team for a spawned actor from an item

Here you go;

Implement a tick in the blueprint

Then get all actors in range

Then get the targeting team of the actors within range and the class

If it is a shooter character with the same targeting team as the object, then have it do the desired action (use a Boolean to only do it once upon entering the range)