i`m getting empty pointer in move torp, here is what i did, and thanks for all this help
Code:

function move_torp1
{
var bullet_speed; // this var will store the speed of the bullet
var trace_coords;
my.skill1 = 1;
my.enable_entity = on;
my.enable_block = on;
my.enable_impact = on;
my.visible = on;
my.transparent = on;
my.bright = on;
my.passable = off;
my.scale_x = 0.5;//scale it down to have it's size
my.scale_y = my.scale_x;//same as scale x
my.scale_z = my.scale_x;//same as scale x
my.event = remove_torp1; // when it collides with something, its event function (remove_bullets) will run
vec_set(my.pan, player.pan);
bullet_speed.x = 40 * time_step; // adjust the speed of the bullet here
bullet_speed.y = 0; // the bullet doesn't move sideways
bullet_speed.z = 0; // then don't allow the gravity to have its ways with the bullet
while (my.skill1);
// this loop will run for as long as the bullet exists (it isn't "null")
{
// move the bullet ignoring the passable entities and store the result in distance_covered
c_move (my, bullet_speed, nullvector, ignore_passable);
wait (1);
ent_remove(me);
}
}

function remove_torp1() // this function runs when the bullet collides with something
{
my.skill1 = 0;

}




Why does everyone like dolphins? Never trust a species which smiles all the time!