How to access different pawn at a time, Ue4

I want to create a game where i want different-2 shape boxes and a main actor. i want to move the box away for make the way for my main actor. I have created the different -2 pawn blueprint for all boxes to controlling them with user input. then how to set input control so that the input is accepted by only one box at a time that box is touch or click.