Basically do a get all actors of class ( get the world location ) and measure the distance between them with distance ( vector ).
But how often are you doing that? It’s not a cheap operation.
It would be better for each crystal to know it’s distance from the player.
What are you trying to achieve?