PARKLAND — Court officials and ballistics experts gathered at Marjory Stoneman Douglas High School on Friday to reenact the deadliest high school shooting in U.S. history.

The three-story building where a gunman killed 17 people and wounded 17 others in 2018 has remained largely untouched since the day of the shooting. Cordoned off behind a 15-foot chain-link fence, it teemed with activity Friday — not long before officials say they plan to demolish it for good.

Technicians set up outside of the building to capture the sound of live gunfire ricocheting through its halls a second time. The reenactment is part of a civil lawsuit against former Broward County Sheriff’s Deputy Scot Peterson, who stood outside while a gunman fired at students and teachers trapped inside locked classrooms and hallway alcoves for more than six minutes on Feb. 14, 2018.

Peterson came within feet of the building’s door and drew his gun, then backed away.

A jury acquitted Peterson in June of all criminal charges stemming from his failure to confront the gunman. Attorneys representing the families of Stoneman Douglas victims and survivors say Friday’s reenactment will prove Peterson could tell where the gunfire was coming from but chose to stay outside anyway.

Mark Eiglarsh, the defense attorney who represented Peterson during his criminal trial, called the reenactment traumatic and unnecessary. He pointed to the testimony of law-enforcement officers, students and staff members who said the reverberation and echo of the gunfire made it difficult to pinpoint where the sound was coming from.

Some said they thought the shots were coming from the football field, Eiglarsh said — hundreds of yards away from where the shooter actually was. He called Friday’s reenactment an attempt to manufacture evidence “that cannot possibly be re-created with any degree of accuracy.”

“It’s insulting to those jurors, to the criminal justice system, and unnecessarily traumatic to all the neighbors in that area,” he said.

A bipartisan group of Congress members and victims’ families toured the yellow-and-gray building hours before the reenactment began Friday. They waited in a single-file line, like students heading to class, before Broward County sheriff’s deputies opened the door.