Bullet 1 Way Fire

Hello Developers, I’m making a some what of a 2D Zombie wave that requires guns and weapons to survive nights, a little dialog about the game. But I am having a problem. I want to make a gun but I only know how to make them shoot following the players mouse. But in this case since the game is 3D I’m going to need the gun to only shoot forward. But I don’t know how to achieve that. Please help.

1 Like

I think when you click you need to make vector.3 change in one direction but not every direction. Name the direction you want Mouse_Position and use that variable instead of the number, in another part of the script make it say “if mouse is moved, change Mouse_Position to the mouse’s position”.

I have no idea what I just said but I hope you do since your a programmer.

1 Like