For example, i want to make a sphere named “Globe” which adds force to other “Globe” blueprints in my map. Is there a simple way to do it?
Hi Lifeburner, you could store all existing Globe actors in an array at level start. You could do this in the Event Begin Play of your player character by using ‘Get All Actors of Class’ and setting the class type as your Globe class. Then retrieve the output array of this node and store it in an array variable of the same type.
Now when you’re spawning a new Globe into the level, get this array and do a ‘ForEachLoop’ through it. This way you can access all actors of Globe class and do whatever you want with them. Once the loop has completed, you can add this newly spawned Globe int your Globe array as well.