Question: Did Ray set up the killing of Joey Randone because of what he saw them do, or was it just luck on Ray's part that he was attacked and left hanging from a TV aerial to then plunge to his death, and this is why he stalled for time with the door lock?
Question: Harvey Keitel was supposed to have been a highly respected veteran officer with the NYPD with connections within the department and other agencies as stated in the movie. With all that power and connections, it puzzles me why his character is still a patrol officer working beat shifts as shown in the scene when he intentionally let Joey fall to his death on the roof. He shows up in uniform in a patrol car with his other crooked partner responding to the call.
Answer: Being a higher-up not only means more responsibility, but also closer scrutiny. As a low-level beat cop, it allows Donlan a lesser profile, greater mobility out on the street, to be at crime scenes without suspicion, and he can more easily and covertly interact with his criminal accomplices and contacts. Being tied to an office would be a hindrance; he can wield his corrupt power more effectively this way.
Actually, Donlan is a Lieutenant, which is a pretty high rank.
Answer: Yes that's correct but in actuality it's highly unlikely a veteran officer would stay in patrol their entire career, crooked cop or not, unless they work for a very small department and there are no opportunities to move up.
Yes, in the real world, it is indeed highly unlikely he would spend his entire career on patrol. For the purpose of the movie, it serves the plot to have the Donlan character written as a mobile beat cop for the reasons stated. It also allows for more action and sets up the final confrontation between Stallone and the crooked cops. Movies just do not reflect reality.
Answer: I would think this would just have been random luck. There is no way you can just pay some random criminal to find and single out Joey and his partner to attack. With all the cops on patrol anyone of them could have responded to that call, so that was just pure luck that Joey and his partner encountered the criminal that threw him to his death on the roof.