// Entity _ always shoot forward

SOUND shoot001 = "shot4.wav"; // Change sound to whatever you want

function gun_muzzle()
{
my.passable = on; my.transparent = on; wait(30); ent_remove(me);
}

action robot()
{
while(1){my.pan+=0.8;vec_set(temp,my.x);temp.x = 30000;vec_rotate(temp,my.pan); trace(my.x,temp); trace_mode = ignore_passable + activate_shoot;ent_create("particle.pcx",target,gun_muzzle);snd_play(shoot001,100,0);wait(30);}
}

// This is WDL

// Have it good /B