<tower
  maxlevel="1"
  unittype="desant"
  name="hero3_bot"
  radius="150"
  velocity="100"
  health="50"
  unitlayer="earth"
  maxtargets="1"
  allowtargets="earth"
 
  handradius="100"
  handradiussector="180"

      >
  <effects>
    <positive damage="7"/>
  </effects>

  <extraproperties
    electro_pos="0x15"
    electro_size="small"
    electro_scale="1"
    fire_pos="0x0"
    fire_scale="1.5"
    />

  <machine_unit start_state="enter">
    <transitions>
      <enter stop="stop"/>
      
      <move stop="stop"/>
      <move die="death"/>
      
      <stop move="move"/>
      <stop die="death"/>
      <stop seetarget="readyfire"/>

      <readyfire notarget="stop"/>
      <readyfire charge="readyfire"/>
      <readyfire move="move"/>
      <readyfire stop="stop"/>
      <readyfire die="death"/>
      <death stop="stop"/>

    </transitions>
    <params>
      <state_death duration="1"/>
      <state_enter duration="0.5"/>
      <state_cocking duration="0.5"/>
      <state_readyfire charge_volume="99999" delay="0.2"/>
    </params>
  </machine_unit>

  <mover>
    <params>
      <allowangles value="0,180,90,270"/>
      <thresold value="75"/>
    </params>
  </mover>

  <children>
    <node type="sprite" name="skin" visible="yes" center="0.5x0.25" animation="Animate[0.5,[folder:hero3_bot::1/meh2hero3_enter_00,indexes:.png,01:09]]"/>
    <node name="health_indicator" pos="-18x31" z="1"/>
  </children>

  <actions>
    <action name="animate_fire" value="Animate[0.5,[folder:hero3_bot::1/meh2hero3_fire_00,indexes:.png,01:16]]"/>
    <action name="animate_left" value="RepeatForever[Animate[0.5,[folder:hero3_bot::1/meh2hero3_go_00,indexes:.png,01:16]]]"/>
    <action name="animate_die" value="Animate[0.7,[folder:hero3_bot::1/meh2hero3_enter_00,indexes:.png,09:01]]"/>
    <action name="animate_nothing" value="RepeatForever[Animate[0.5,[folder:hero3_bot::1/meh2hero3_stay_00,indexes:.png,01:16]]]"/>
    <action name="animate_enter" value="Animate[0.5,[folder:hero3_bot::1/meh2hero3_enter_00,indexes:.png,01:09]]"/>
  </actions>

  <events>
    <eventlist name="on_die">
      <stopallaction target="skin"/>
      <action action="animate_die" target="skin" state="run"/>
    </eventlist>

    <eventlist name="on_rotate180">
      <setproperty property="scale" target="skin" value="1x1"/>
      <stopallaction target="skin"/>
      <action action="animate_left" target="skin" state="run"/>
    </eventlist>

    <eventlist name="on_rotate0">
      <setproperty property="scale" target="skin" value="-1x1"/>
      <stopallaction target="skin"/>
      <action action="animate_left" target="skin" state="run"/>
    </eventlist>

    <eventlist name="on_shoot_byangle180">
      <setproperty property="scale" target="skin" value="1x1"/>
    </eventlist>
    <eventlist name="on_shoot_byangle0">
      <setproperty property="scale" target="skin" value="-1x1"/>
    </eventlist>

    <eventlist name="on_shoot">
      <setproperty property="scale" target="skin" value="1x1"/>
      <stopallaction target="skin"/>
      <action action="animate_fire" target="skin" state="run"/>
    </eventlist>

    <eventlist name="on_stop">
      <stopallaction target="skin"/>
      <action action="animate_nothing" target="skin" state="run"/>
    </eventlist>

  </events>

</tower>
