DALLASTOWN, Pa. — York Area Regional Police said two men in York County hatched a plan to egg a police cruiser. But thanks to technology, police have iden...

DALLASTOWN, Pa. -- York Area Regional Police said two men in York County hatched a plan to egg a police cruiser. But thanks to technology, police have identified one of the suspects.

The two men were caught on a dash camera egging a police car in Dallastown on Main Street.

While the officers were patrolling the neighborhood on foot at night, the dash camera captured the men approaching and standing by the vehicle.

They then started to splatter eggs onto the camera. But there was a crack in the plan that the dash cam video catches.

Sgt. Peter Montgomery said, "It shows the kid lighting up his face like either taking a picture or doing a video of some type and then both of them throwing eggs at the windshield of the car."

Police identified the man who lit up his face with a cellphone as 19-year-old Dalton Hoover of Dallastown.

And now he is facing charges.

"He most likely will be charged with cleaning the car, and he'll be charged appropriately for his actions," Montgomery said.

Those charges also include institutional vandalism, purchasing alcohol by a minor and disorderly conduct. Montgomery said this is a very unusual situation.

"It's not common at all. I guess that's one of those times where they thought it was a great idea which it ended up not being because we know the one kid," Montgomery said.