Trigger Security lights and other Cameras based on direction of zone exit

I have a doorbell cam that sees the front walk and most of the front yard. I would like the ability to trigger events such as turning on a floodlight over the garage based on the direction a person leaves the doorbell camera view. For example, if I knew that my garage was to the left of the field of view of my door cam and I had a floodlight cam over the garage. I’d like to be able to trigger that floodlight cam to start recording if someone walks out of the view of my door cam to the left. I’d also like to be able to restrict these triggers by time of day (for the use case of using security lighting to scare off possible intruders at night