name	         RavenBase
health	         60
setlayer	 1
type	         none
subject_to_gravity	 0
offscreenkill	 10000
animationscript  data/scripts/oscript.c
load	         RavenWing


anim spawn
@script
   if(frame==1){
     void self = getlocalvar("self");

     setentityvar(self, 1, 15);
   }
@end_script
	delay	300
	offset	65 35
	frame	data/chars/cobraboat/ravenwing.png
	delay	1800
	@cmd	MspawnN "RavenWing" 0 5 0 0
        frame   data/chars/misc/empty.gif
	delay	10
	offset	65 0
	frame	data/chars/cobraboat/ravenwing.png
	offset	65 5
	frame	data/chars/cobraboat/ravenwing.png
	offset	65 10
	frame	data/chars/cobraboat/ravenwing.png
	offset	65 15
	frame	data/chars/cobraboat/ravenwing.png
	offset	65 20
	frame	data/chars/cobraboat/ravenwing.png
	offset	65 25
	frame	data/chars/cobraboat/ravenwing.png
	offset	65 30
	frame	data/chars/cobraboat/ravenwing.png
	offset	65 35
	@cmd	layer 3
	frame	data/chars/cobraboat/ravenwing.png

anim idle
	loop	1
	delay	20
	offset	65 35
	frame	data/chars/cobraboat/ravenwing.png
	@cmd	attackE "ANI_FOLLOW1" 0
	frame	data/chars/cobraboat/ravenwing.png

anim follow1
@script
   if(frame==0){
     void self = getlocalvar("self");
     void Limit = getentityvar(self, 1);

     if(Limit>0){ // Hasn't reached limit yet?
       setentityvar(self, 1, Limit-1);
     } else {
       killentity(self);
     }
   }
@end_script
	delay	1
	offset	65 35
	frame	data/chars/cobraboat/ravenwing.png
	delay	1800
	@cmd	layer 1
	@cmd	MspawnN "RavenWing" 0 5 0 0
        frame   data/chars/misc/empty.gif
	delay	10
	offset	65 0
	frame	data/chars/cobraboat/ravenwing.png
	offset	65 5
	frame	data/chars/cobraboat/ravenwing.png
	offset	65 10
	frame	data/chars/cobraboat/ravenwing.png
	offset	65 15
	frame	data/chars/cobraboat/ravenwing.png
	offset	65 20
	frame	data/chars/cobraboat/ravenwing.png
	offset	65 25
	frame	data/chars/cobraboat/ravenwing.png
	offset	65 30
	frame	data/chars/cobraboat/ravenwing.png
	@cmd	layer 3
	offset	65 35
	frame	data/chars/cobraboat/ravenwing.png
	@cmd	beidle
        frame   data/chars/misc/empty.gif
