How to get a reference to an unspawned character?

Get actor of class is expensive. I would add “player hit” and “clean up” interfaces to your obstacles and have the clean up box or player call then as appropriate (the on overlap gives you a reference to the object that did the overlap). You can then implement different behaviours in each obstacle type for when the interface is called.