I was in desolation point, about to enter the last explorable cave before the broken bridge, the one on the side of the road. I was about to enter the cave when a wolf attacked me; I managed to survive, even with a not-so-small loss of condition, leaving that wolf to run away; at least, that's what I thought. Well, I decided to enter the cave and started exploring it while equipping a flare. I thought: I'm in the cave now, what could go wrong? I Continued exploring, took that path that leads you higher to that corpse with the rifle near him. Well, I got the rifle, switched back to the flare, searched the body, turned back facing the path I came from... and the wolf was there, 1 meter from me. I didn't survive that.
Now I wonder: from a game mechanics perspective, that wolf was already in the cave / spawned there, or it could possible have followed me from outside to inside the cave? What's the possible game behaviour?