<tower template="ini/units/objects/archer.xml"
      bullet_params="0,0,12x100|45,45,12x100|90,90,6x89|135,135,-6x89|180,180,-13x94|225,225,-14x100|270,270,-9x107|315,0,12x100|"
>

  <effects>
    <positive damage="50"/>
  </effects>
  
  <machine_unit start_state="stop">
    <transitions>
      <readyfire charge="charging"/>
      <readyfire notarget="waittarget"/>
      <charging ready="readyfire"/>
      <waittarget seetarget="readyfire"/>
      <waittarget relax="waittarget"/>
      <waittarget die="death"/>

      <move seetarget="readyfire"/>
      <move stop="stop"/>
      <stop seetarget="readyfire"/>
      <stop move="move"/>

      <readyfire die="death"/>
      <charging die="death"/>
      <move die="death"/>
      <stop die="death"/>
      <death stop="stop"/>

    </transitions>
    <params>
      <state_readyfire charge_volume="2" delay="0.15"/>
      <state_waittarget duration="1"/>
      <state_charging duration="1"/>
      <state_move alwaysmove="yes"/>
      <state_death duration="0.1"/>
    </params>
  </machine_unit>

  <children>
    <node name="skin" pos="0x40"/>
  </children>

  <actions>
<!--    <action name="animate_skin" value="RepeatForever[Sequence[EaseInOut[MoveBy[0.6,0,3],2],EaseInOut[MoveBy[0.4,0,-3],3]]]"/>-->
  </actions>

  <events>
    <eventlist name="oncreate">
      <runaction action="animate_skin" target="skin"/>
    </eventlist>
  </events>

</tower>
