Author Topic: Modifying a weapon's type of fire?  (Read 404 times)

What part of the script do I want to be looking for to modify a weapon to make it an automatically firing weapon or where you need to click to fire constantly?
« Last Edit: November 16, 2010, 10:43:36 PM by FrogFreak »

The states at the end of the image.

Looks crazy doesn't it?

Well, which part of it do I modify, or would it be that the whole thing has different lines in it that contribute to the type of fire determined?

Look at the stateTransitionOn(some words)[(some number)] = "(some state name)"; lines.

Guns that fire once per shot us a stateTransitionOnTriggerUp, while you could change it to ...OnTimeout to have it automatically fire again, although you might need more than that...

It's a good idea to try to understand how the states work, because you can do some really awesome things with them.