Why don't scripts need to make sense

Rating: 4/10 (16 March 2019)

Bad guys chasing the daughter. She leaves her flip-flops by the window. What makes the bad guys assume she climbed out the window, walked along the ledge and popped into another room? It makes no sense whatsoever.