How do i store multiple locations into a single variable easily?

I don’t want certain meshes to exist in the level by default. I know I can hide/unhide, but that wont work here. I want them to appear in a random location when they are needed. I am trying to create a vector matrix to store the locations I want. The level has objects placed in the locations i want to use. Is there a way to select multiple objects in your level and create a matrix of their locations without having to copy/paste each location individually?

you can use an editor widget.
a bpfl.
you can store them in a data table (recommended), or a data asset.
or what most people would do, is to have actors with nothing on them just a scene component. and place them in the places you want things to appear.
then on begin play or smth you GetAllActorsOfClass with that class.
then you choose at random.
then you call SpawnActor.

How about a map?

Works a lot like an array.

The data table approach recommended by nande is probably superior long term (if this is something you need to do a lot) and better for project structure, but if you’re just prototyping setting up a map is simpler and faster.