How can I get the location of the creatures?

But that way I would have to store the transform of each agent to then take it when the player eliminates a creature?