Kristian Dowling / Getty Images

(Ice Cube talks N.W.A. biopic)

Production is finally underway on the N.W.A. biopic "Straight Outta Compton," and the cast survived a very real and terrifying incident last week, when a drive-by shooting reportedly occurred near the set.

According to TMZ, the crew was filming outside of the Compton Courthouse in Los Angeles, when gunmen in a car opened fire nearby. They were apparently aiming at neighborhood residents near the set who were flashing gang signs at them.

None of the cast was hurt, but one civilian was reportedly hit and survived the shooting. The Los Angeles County Sheriff's Department is said to be investigating the incident and hasn't concluded that it was gang related as yet. Filming for "Straight Outta Compton" is expected to continue in another Compton location this week.

Related: The N.W.A Biopic Has Its Cast: Meet The Actors Playing Dr. Dre, Ice Cube And Eazy-E

MTV News has reached out to the L.A. County Sheriff's office for comment.

“I’m totally involved, I’m engulfed in it,” Ice Cube told MTV News about the film recently. “This is our legacy, you can’t play with this, there’s no cutting corners. I’m fully engulfed in that movie, very anal about it. It gotta be right.”