Any person who shall maliciously and willfully discharge a firearm at an inhabited dwelling house, occupied building, occupied motor vehicle, occupied aircraft, inhabited housecar, as defined in Sectionof the Vehicle Code, or inhabited camper, as defined in Section of the Vehicle Code, is guilty of a felony, and upon conviction shall be punished by imprisonment in the state prison for three, five, or seven years, or by imprisonment in the county jail for a term of not less than six months and not exceeding one year.
As used in this section, "inhabited" means currently being used for dwelling purposes, whether occupied or not.
Ca. Pen. Code § 246