function move_bullet()
{
set(my,FLAG2);
while(my)
{
c_move(my,vector(10,0,0),nullvector,IGNORE_PASSABLE | IGNORE_FLAG2);
wait(1);
}
}
function standard_shoot()
{
vec_for_vertex(bullet_pos1,ship,1231);
bullet1 = ent_create("bullet.mdl",vector(bullet_pos1.x,bullet_pos1.y,bullet_pos1.z),move_bullet);
bullet1.pan = ship.pan;
}
action player_action()
{
while(1)
{
if(key_space){standard_shoot();}
wait(1);
}
}