ive been hearing questions about shooting guns and such. most code examples i see work, but involve tons of objects being created. while this is a good method, its hell for multiplayer. while i dont know at the top of my head how to shoot bullets, i have a simple method/idea:
load the bullet object and position it in front of the gun, when the fire key is pressed, move it a the maximum distance with the move command, check for collisions and perform the actions based on them, if collision or the went the distance without collision then put it back.
presto! one bullet used. in theory, the gun can shoot and reshoot quickly.