A man on trial for the shooting of four police officers has told the High Court in Hamilton he had no idea who he was shooting at when he opened fire at armed officers last March.
Rhys Warren faces six charges, including attempted murder, using a firearm against a police officer and wounding with intent to cause grievous bodily harm.
He was arrested after a 22-hour standoff with armed police in the Bay of Plenty.
The 28-year-old, who is representing himself, began giving evidence today, reliving the moment armed officers entered his family's house near Kawerau on March 9 last year.
"I was asleep in my house not bothering anyone. I woke up to a loudspeaker," he said.
He said he grabbed his grandfather's gun and took cover as windows were smashed and people started entering the house.
Warren said he saw a gun poking its way down the hallway.
"As soon as I saw that gun I shot. I shot at the gun."
Warren told the court he was scared and thought he was going to die and that he is still traumatised.
"There were bullets coming from every direction. I hit the ground and stayed on the ground."
Warren drew parallels between the incident and treatment of Maori by "the armed constabulary" of the 1800s.
"It was never my intention for someone to get hurt. I was scared and threatened. I thought I was going to die.
"I'm on trial for crimes I did not intend to commit."
The trial, now in its third week, continues.