Assuming that your wall is Blueprint, you can assign a Tag to it (like: Blue Team Wall) and later check for the tag using Component Has Tag node.