How can I get the location of the creatures?

Do you have any idea how to do it, because that is the part that I cannot specify, an example that can guide me, and sorry for asking so much, I am in the process of learning and thank you very much in advance.