How to Get an Array of Actors by Their Copies?
Normally when we make arrays of actors we are actually making references to those actors in blueprints, but how to do it if I`d like to make an array of actors by their copies instead of references?
asked Nov 30 '18 at 10:49 AM in Blueprint Scripting
You have to loop through the array, spawn new actors with the same attributes as the current ones, and store these in a new array. As a result, you should have a new array with the "copy" of your existing actors.
answered Nov 30 '18 at 12:29 PM
I think you might use the "Get all actors from class" node if ou are using blueprints, basically it returns an array of all the actors of a given class to the node, either by a drop down menu or node imput that can come from a variable and sort, here's some documentation on it. https://docs.unrealengine.com/en-us/Gameplay/HowTo/FindingActors/Blueprints Hope this helps (=
answered Nov 30 '18 at 12:36 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here