Harrison Ford could have died while filming 'Star Wars: The Force Awakens'.
The 74-year-old actor suffered a broken leg when he returned to his role of Han Solo on the sci-fi series reboot and a door on the Millennium Falcon spaceship fell open onto his limb during filming at Pinewood Studios in London, England.
And in a court hearing, prosecutor Andrew Marshall claimed the door posed a "risk of death" if the emergency stop button hadn't been activated in time.
He explained how Harrison and another actor had gone through the door and hit a button, before walking back through as he believed the set wasn't live and it wouldn't close.
But it was being remotely operated by another person, and as Harrison passed underneath it, he was hit in the pelvic area and pinned to the ground.
Mr. Marshall said: "It could have killed somebody.
"The fact that it didn't was because an emergency stop was activated."
The Health and Safety Executive (HSE) explained the power of the rapidly-closing metal-framed door meant the actor - who was subsequently airlifted to hospital - was hit with a weight comparable to that of a small car.
Foodles Production - a subsidiary of Disney - have pleaded guilty for breaching health and safety legislation on two of four counts they were charged with over the incident at Milton Keynes magistrates court and will now be sentenced at Aylesbury Crown Court on 22 August.
The other two charges were withdrawn.
Foodles said: "The safety of our cast and crew was always a top priority throughout the production."
A spokesperson for the Health and Safety Executive (HSE) insisted it is "vital" for such companies to manage risk properly.
They said: "The British film industry has a world-renowned reputation for making exceptional films. Managing on-set risks in a sensible and proportionate way for all actors and staff - regardless of their celebrity status - is vital to protecting both on-screen and off-screen talent, as well as protecting the reputation of the industry."
Harrison previously opened up about the injury, which occurred in June 2014, and revealed he broke his leg in two places.
He previously said: "I was just standing in the doorway talking to JJ Abrams, our director.
"The camera hadn't been set up but I was wearing my costume ready to go to work.
"We had a big budget this time. In the original film, the door - if there had been a door - would have been closed with a pulley and a stage hand just closing it. Now we had lots of money and technology and so they built a f***ing great hydraulic door which closed at light speed and somebody said, 'Ooh I wonder what this is?' And the door came down and hit me on my left hip because I was turned to my right.
"And then it flung my left leg up and it dislocated my ankle, and as it drove me down to the floor, my legs slapped on the ramp up to the Millennium Falcon and broke both bones in my left leg."
To this day, Harrison - who is married to Calista Flockhart - doesn't know who pushed the button that made the door move.
He admitted in an interview: "I don't know and I don't want to know."
Tagged in Harrison Ford