Findinng destroyed actors in an array

Hello,
I have an array of actors. I destroy some of them using “Destroy()” function. How can I later find the indexes of destroyed actors? Comparing to NULL doesn’t seem to work. And also how can I exchange it with other element in the array?

You can use IsPendingKill() or IsValidLowLevel or when you make your array, you can set an array of TWeakObjectPtr, then check with TWeakObjectPtr::IsValid().

Thank you, that’s exactly what I was looking for