How to Activate an event depending on the player's location?

I would like the camera shake to activate only if the player is close to the enemy. To be precise, my enemy is a giant who makes the ground tremble while walking.

Thanks.