anim follow1
loop 0
@script
void self = getlocalvar("self");
int Summon = getentityvar(self, 1);
int time;
int posx = getentityproperty(self, "x");
float x,z;
if(frame==0){
setentityvar(self, 1, openborvariant("elapsed_time"));
time = 0;
}
if (frame>0)
{
x = sin(time/0.45)/16;
z = cos(time/0.45)/16;
changeentityproperty(self, "velocity", 0, 0, 0) ;
time +=3;
}
if(Summon <= openborvariant("elapsed_time") - 2000){
setentityvar(self, 1, NULL());
performattack(self,openborconstant("ANI_FOLLOW1"));
}
if(posx>=240)
{
changeentityproperty(self, "velocity", 0, 0, 0) ;
}
@end_script
delay 2
offset 205 583
#move 2
frame data/chars/RoboCrusher/0.gif
move 0
frame data/chars/RoboCrusher/0.gif
frame data/chars/RoboCrusher/0.gif
offset 205 550
frame data/chars/RoboCrusher/0.gif
frame data/chars/RoboCrusher/0.gif
frame data/chars/RoboCrusher/0.gif
offset 205 516
sound data/chars/rash/steel.wav
frame data/chars/RoboCrusher/0.gif
frame data/chars/RoboCrusher/0.gif
delay 110
frame data/chars/RoboCrusher/0.gif