Blockland Forums > Modification Help

Machine Gun Weapons

Pages: (1/1)

EpicFrySauce:

I've taken a look at several gun files and I'm not quite sure how to make a weapon single fire, or automatic.

What bit of code in a .cs file makes a weapon automatic when the mouse is held down?
How do you control the rate of fire?

For example, maybe use the default gun's server.cs file?

Thanks,
-EpicFrySauce

EpicFrySauce:

Seriously I've been at this for days now and I've figured out almost everything in the file except for making it automatic when the mouse is held down.

Eeposs:

Hello, http://forum.blockland.us/index.php?topic=78760.0 That might help.

Nasoa:


--- Quote from: Eeposs on November 28, 2011, 09:16:10 AM ---Hello, http://forum.blockland.us/index.php?topic=78760.0 That might help.

--- End quote ---
Yep, at the end there's an example script for machine gun.

Pages: (1/1)

Go to full version