the script that is given always shoot straight forward, how would it be if I want it to work with tilted cam as well?

also

is it possible to disable the fire_bullet() function to be triggered through some commands?
Code:
if (mouse_right == 1)
{
mouse_mode = 1; 
my.pan = player.pan; // rotate the player using the mouse
camera.tilt = camera.tilt; // look down at the player
} 

else
{
my.pan -= 6 * (mouse_force.x) * time_step; // rotate the player using the mouse
camera.tilt += mouse_force.y; // look down at the player
on_mouse_left = fire_bullets;
mouse_mode = 0;  
}


the way my code is now, it will still fire bullets
this is also the only place in my script the on_mouse_left is.


New to lite-c and gamestudio in general, thank you for reading.
Com, A7 v7.7