How do i keep my actor reference when spawning in different enemies from an array?

essentially i want to spawn in multiple types of enemies using the same spawn actor but whe i put in the arry with all of them on it removes the actor reference i have even though all the contents of the array have the actor reference

All of your enemies types will need to have a common parent class which has Floor Ref exposed as a spawn parameter. After that, you will need to modify Enemy Types array to expect that common class as a reference and refresh your ForEachLoop node.

The reason why you need to refresh the ForEachLoop is because it uses a Wildcard for both the input and output pins. If you later change the input type to another one, you need to make sure to refresh the node so the output is also updated. You also might need to reconnect the output pin after it and refresh SpawnActor so your parameter is properly displayed.