<tower template="ini/units/creepPortal.xml"
       eventtimer="yes"
       >
	<actions>
		<action name="fadePortal" value="Spawn[RepeatForever[RotateBy[3,-360]],Sequence[DelayTime[7],FadeOut[0.5]]]"/>
		<!-- DELAY TIME подгонять под длительность волны чтобы портал пропал как волна кончится -->
	</actions>

	<events>
		<eventlist name="oncreate">
			<!-- <setproperty property="timerDuration" target="." value="3.1"/> -->
			<runaction action="rotatePortal" target="skin1" />
			<setproperty property="visible" target="." value="no"/>
			<setproperty property="color" target="skin1" value="ff0000"/>

		</eventlist>
  
	<eventlist name="onclick">
			<runaction action="touch" target="skin1" />
		</eventlist>
		<eventlist name="ontouchesend">
			<setproperty property="color" target="skin1" value="00FF00"/>
			<setproperty property="timerEnabled" target="." value="no"/>
			<setproperty property="visible" target="." value="no"/>
		</eventlist>
 		
	  
		<eventlist name="timerStarted">
		  <!-- <setproperty property="color" target="skin1" value="ff0000"/> -->
		</eventlist>
		<eventlist name="timerEnded">
			<setproperty property="color" target="skin1" value="FFFFFF"/>
 		  	<wavegenerator command="generate" value="stop">
				<wave  healthrate="10">


	<creep name="creepArcher2" delay="1" healthrate="8" score="6" routesubtype="main" routeindex="6" />
			<creep name="creepArcher2" delay="0.0" healthrate="8" score="6" routesubtype="right" routeindex="6" />
			<creep name="creepArcher2" delay="0.0" healthrate="8" score="6" routesubtype="left" routeindex="6" />
			<creep name="creepArcher2" delay="0.6" healthrate="8" score="6" routesubtype="main" routeindex="6" />
			<creep name="creepArcher2" delay="0.0" healthrate="8" score="6" routesubtype="right" routeindex="6" />
			<creep name="creepArcher2" delay="0.0" healthrate="8" score="6" routesubtype="left" routeindex="6" />
			<creep name="creepArcher2" delay="0.6" healthrate="8" score="6" routesubtype="main" routeindex="6" />
			<creep name="creepArcher2" delay="0.0" healthrate="8" score="6" routesubtype="right" routeindex="6" />
			<creep name="creepArcher2" delay="0.0" healthrate="8" score="6" routesubtype="left" routeindex="6" />
			<creep name="creepArcher2" delay="0.8" healthrate="8" score="6" routesubtype="main" routeindex="6" />
			<creep name="creepArcher2" delay="0.0" healthrate="8" score="6" routesubtype="right" routeindex="6" />
			<creep name="creepArcher2" delay="0.0" healthrate="8" score="6" routesubtype="left" routeindex="6" />
			<creep name="creepArcher231" delay="0.6" healthrate="8" score="6" routesubtype="main" routeindex="6" />
			<creep name="creepArcher2" delay="0.0" healthrate="8" score="6" routesubtype="right" routeindex="6" />
			<creep name="creepArcher23" delay="0.0" healthrate="8" score="6" routesubtype="left" routeindex="6" />

					
				</wave>
		  	</wavegenerator>
		</eventlist>
	</events>
</tower>

