Hi, I made a sample project where I can spawn and delete spawn-able actors. I add them to an array when spawned and then I have code setup to delete the last one spawned until there are no more left, however I cannot seem to figure out how to delete any of the spawned actors in any order i want by looking at them and pressing the button i want to use to delete them. I came close a few times but unfortunately didnt quite get there and didnt save the code for that. Here is my code for deleting the last actor from an array, how can I modify this to be able to delete any actor spawned from the array in any order and remove it from the index? I've been stuck on this for a few days now and any help would be appreciated. Thank you!
Also as a side problem, when actors spawn, they spawn halfway in the ground, not sure why that is.

Here is my code to spawn the actors in case you need it.
Also as a side problem, when actors spawn, they spawn halfway in the ground, not sure why that is.
Here is my code to spawn the actors in case you need it.
Comment