How can I get creatures transform that has spawned by creature spawner?

I have one more question sorry again
How do I know which array number the creature that has been eliminated is?
When one of them died, he got the number of array. And I want to pick that up. Can you help me?