Hey, everyone. Is there a way that I can store/save the positions of specific actors in the world into an array? E.g. I have some cubes throughout the world and I will be spawning more of it soon thru a file online. However, I need to know if before I spawn another cube, the supposed spawn area of the cube isn’t occupied by another cube. Let’s say that Cube_1 is already in the world, but Cube_2 is about to be spawned, Cube_1 location is 10.5, 9, 7 and Cube_2 is 10,9,7, Cube_2 should not be spawned.
I thought of using the GetAllActorsofClass node in finding the actors that have spawned already and store them in an array and then add the new data coming in to a new array and compare both. Check if there’s data <= or >= from Array_1 to Array_2, but that’s as far as I can go. Is there a node that checks if the spawn location of an actor is within the bounds of another actor?