Deselect object when another of the same type is selected

Pretty new to this, was wondering how to deselect an object if the player clicks on another object of the same type in the world.

Felt like I was getting close to what I wanted here but am not sure exactly how to do it.

Thanks in advance!

Define a Type in the actor class. You can use Actor/Component Tags or use Gameplay Tags.

OnClicked get the type from the clicked on actor.