Blockland Forums > Modification Help

How do you make 2 projectiles fire?

Pages: (1/1)

xikrizoix:

How do you make more then 1 projectile fire? Its pretty hard for me.

TimSama:

Find the function that fires the projectile and double it so it does it twice?
Like:
mousefire()
{
blah blah blah(%weapon == 1)
                {
                  FireProjectile()
                 }

}
You would make the FireProjectile() Function call twice instead of once.

Destiny/Zack0Wack0:


--- Quote from: TimSama on August 03, 2010, 06:51:27 PM ---
--- End quote ---
I appreciate your help but your help is simply going to confuse him more.

Take a look at Ephialtes' Shotgun script. You simply spawn 2 projectiles on the WeaponImage's onFire command.

Chrono:


--- Quote from: TimSama on August 03, 2010, 06:51:27 PM ---
--- End quote ---
Sorry, but mixing client sided with server sided, especially with non-existent functions is a bad idea.

TimSama:

Yeah. . . Sorry bout the bad help, pretty new to coding >.<
Worth a shot? Was it even a guess at a good idea?

Pages: (1/1)

Go to full version