Cop fires at actor playing robber in heart-pounding mix-up caught by body cam

Next time maybe apply for permits?

Bodycam footage released by Indiana State Police reveals why you should always let authorities know when you're shooting a film, espcially if it's about a robbery.

Watch: Second Bodycam Video Raises Questions of Evidence Planting in Baltimore

The video out of Crawfordsville shows a town police officer approach the door of a bar, gun drawn.

Crawfordsville police officer approaches the door to the bar, and when he sees the man he shouts at the man to drop his weapon, video shows.

In an instant, the officer fires as the suspect turns toward him.

RELATED: Click through some of the most outrageous mugshots and crimes

Uninjured, the man identified by authorities as actor Jim Duff dropped the gun and pulled off his mask.

“We’re doing a movie,” Duff said.

After a moment's hesitation, the cop says "Excuse me?" before ordering the man to the ground.

Cops said neither the production company nor the Back Step Brewing Company, where the independent film was being shot, notified officials of the shoot.

Watch: Chicago Police Release Body Cam Footage of Unarmed Teen Being Shot By Cops

"If you don’t know it is a movie scene, how are you supposed to react? I know if it was my situation, I probably would have done the same thing," Indiana State Police spokesperson Sgt. Kim Riley told reporters.

Thankfully, the situation was soon diffused without injuries.

Watch: Handcuffed Man Proposes To Girlfriend In Body Cam Footage

Advertisement