#GENERAL
*name        = "target_laser_01";
*faction     = "everything";

*rad         = 1.0;
*mass        = 50000000.0;
*elasticity  = 0.1;
*drag        = 0.5;
*friction    = 4.5;
*hardness    = 0.3;
*smoosh      = 0;
*roll        = 1;

*model       = "sphere_01";
*model_col   = colorRGB( 1.0, 1.0, 1.0 );
*model_scale = 1.0;

#ATTRIBUTE "attract";
#BASE      20.0;
#ATTRIBUTE "leak";
#BASE      0.0;
#ATTRIBUTE "speed";
#BASE      50.0;
#ATTRIBUTE "health";
#BASE      10000000.0;
#ATTRIBUTE "res";
#BASE      1.0;
#ATTRIBUTE "rot_speed";
#BASE      100.0;
#ATTRIBUTE "exp";
#BASE      0.0;
#ATTRIBUTE "sound";
#BASE      0.0;
#ATTRIBUTE "hit";
#BASE      0.0;

#ON_DAMAGE
 
 var func = nop;
 func = if(eq(this_get_attribute("hit"), 0), this_control_push, nop);
 func("script", "misc/target_laser_hit");

#CONTROL "script";
##BEGIN

#SEQUENCE "start";
# lvar("dir", 2);
# seq_jump("move");

#SEQUENCE "move";
# move(lvar("dir"), 0);
  lvar("moved", add(lvar("moved"), 1));
# var func = nop;
  func = if(geq(lvar("moved"), 22), seq_jump, nop);
  func("switch");
# wait(.01);

#SEQUENCE "switch";
# lvar("dir", mult(lvar("dir"), -1));
  lvar("moved", 0);
# seq_jump("move");

##END
