Code:
  
// Fire Gun Function
function PewPew()
{
var theTarget;
bullet = "bullet.mdl";
vec_set(theTarget.x, vector(10000, 0, 0)); // shoots 10000 quants
vec_rotate(theTarget.x, camera.pan); // shoots in the direction of the player (cameras pan, b/c 3rd person)
c_trace(my.x, theTarget.x, ignore_me + scan_texture | ignore_passable | use_aabb );

if(str_cmpi(tex_name, "TESTBOSS.MDL") == 1 && getEnergy() >= shootEnergy)
{
doDamage(shootDmg);
subtractEnergy(shootEnergy);
snd_play(laserPew, 100, 0);
}
if(getEnergy() < shootEnergy)
{
snd_play(laserEmpty, 100, 0);
subtractEnergy(0);
}
else
{
snd_play(laserNoHit, 100, 0);
subtractEnergy(shootEnergy);
}
snd_stop(laserPew);
snd_stop(laserEmpty);
snd_stop(laserNoHit);
}





Any ideas on how to make this shoot bullet.mdl?