Hi — I’m trying to develop a script to get all the actors from a certain class overlapping a collision component in the character, and select the closest one.
Just to be clear, all the actors that I want to be overlapped belong to the same “interactable” class, and possess the same blueprint interface. When an actor is overlapped, a boolean inside the actor must be changed so that the actor is focused; when the overlap ends, the focus does too. When more than one actor overlaps the capsule, the scripts must choose one and one actor only.
I’ve tried a couple of systems, but they do not work (see attachments).