I'm not gonna give you the code, just gonna show you how.
First you have to determine the trigger - wether it will be the spacekey or mouseclick or something. If this is an FPS, it's probobly better to do a mouseclick trigger.
So in the main loop, your gonna have to have-
Instead of having a gosub, lets just use a simple variable.
The variable will be called trigger#
So we should be able to set the trigger# variable to it's shooting state by having this code-
if mouseclick()=1 then trigger#=1
We don't want to have the trigger# variable be in shooting state all the time, so we have to add this code-
if mouseclick()=1 then trigger#=1 else trigger#=0
Now that we have the trigger set to shooting we are going to have make the bullet.
Also in the loop, we are going to have to identify if the trigger# variable was set to shoot. So we will have to have-
And now that we have the trigger done, its time to look at the properties of the bullet we will have.
First, it's size. So the command will be-
make object cylinder objnum,sizenum
You will have to replace the objnum, with the number of of the object the bullet will be, and sizenum, with the size of the bullet-cylinder. Find a comfertable size for the character's weapon.
So the code so far is (in the loop)-
if mouselick()=1 then trigger#=1 else trigger#=0
if trigger#=1
make object cylinder objnum,sizenum
I'm busy right now, so the rest of the stuff will come later
Hope it helped!