Array of Actors not currently in the level

Hi, I wanted to create an array of actors (items) not currently in my level so that I could spawn them from a machine.
If you are only spawning one type of item, this is easy.
I could not find a way to reference actors of different classes so I could put them in my array if they were not in my level already.
I made a work-around by putting them in a box which is “outside” my level (player can’t get to it) making the array instance editable and selecting from this collection.
Is there another way?

Looks like you using the pointers to actual actor objects, which isn’t the thing you looking for. You need to store the classes of actors you going to spawn - they are not spawned yet and only define the objects that can be spawned from them.

And then you spawn objects you need like this (or by any other logic you want)

Well, all of this - assuming that your enemies are have different classes and not the only one class with different settings. In this case spawn will be a bit more complex

1 Like

Thanks! That worked perfectly. From there I can add default classes to my array.
The spawner actually asks for class. Now I know why.