An electric gun comprising: a housing; an engine portion which is disposed in the housing and is for firing a bullet; an empty shooting prevention device; and a bullet detection device, wherein the engine portion includes: a trigger; a first contact; a motor; and a piston, wherein the empty shooting prevention device includes: a switch which is disposed in series with the first contact, wherein the first contact is configured to allow a current to pass when the trigger is pulled, in order to supply power to the motor; and a power supply stop portion which is configured to disconnect the switch to prevent a power supply to the motor in response to an operation of the bullet detection device which detects that there is no bullet, wherein the power supply stop portion includes a detection receiving portion which is configured to receive the operation of the bullet detection device which is configured to detect that there is no bullet, a piston interlocking portion which is interlocked with a movement of the piston driven by the motor, and a switch disconnecting portion which is disconnected by the piston interlocking portion driven by the movement of the piston, wherein through the detection receiving portion engaging with the piston interlocking portion, the piston interlocking portion operates the switch disconnecting portion, and the switch disconnecting portion disconnects the switch, wherein the electric gun is characterized in that both the switch and the power supply stop portion are provided outside the housing. a housing; an engine portion which is disposed in the housing and is for firing a bullet; an empty shooting prevention device; and a bullet detection device, wherein the engine portion includes: a trigger; a first contact; a motor; and a piston, a trigger; a first contact; a motor; and a piston, wherein the empty shooting prevention device includes: a switch which is disposed in series with the first contact, wherein the first contact is configured to allow a current to pass when the trigger is pulled, in order to supply power to the motor; and a power supply stop portion which is configured to disconnect the switch to prevent a power supply to the motor in response to an operation of the bullet detection device which detects that there is no bullet, a switch which is disposed in series with the first contact, wherein the first contact is configured to allow a current to pass when the trigger is pulled, in order to supply power to the motor; and a power supply stop portion which is configured to disconnect the switch to prevent a power supply to the motor in response to an operation of the bullet detection device which detects that there is no bullet, wherein the power supply stop portion includes a detection receiving portion which is configured to receive the operation of the bullet detection device which is configured to detect that there is no bullet, a piston interlocking portion which is interlocked with a movement of the piston driven by the motor, and a switch disconnecting portion which is disconnected by the piston interlocking portion driven by the movement of the piston, a detection receiving portion which is configured to receive the operation of the bullet detection device which is configured to detect that there is no bullet, a piston interlocking portion which is interlocked with a movement of the piston driven by the motor, and a switch disconnecting portion which is disconnected by the piston interlocking portion driven by the movement of the piston, wherein through the detection receiving portion engaging with the piston interlocking portion, the piston interlocking portion operates the switch disconnecting portion, and the switch disconnecting portion disconnects the switch, wherein the electric gun is characterized in that both the switch and the power supply stop portion are provided outside the housing.