|
I'm making a top down shooter and I'm using a modified version of the RocketLauncher.js script to act like a machine gun. (I'm doing this because I'm adding a trail to the bullet and it wouldn't look right with the MachineGun.js) I put magazines in the rocket launcher script (Now GunScript) and I made it so if the ammo runs out, if there is a magazine left, it'll add more ammo. It's all working fine but now I want there to be a break after there's no more ammo... Here's my primitive version of the script.
It's primitive but it works :) Again, I want it to reload after the magazine runs out of bullets.
(comments are locked)
|
|
You can use Thanks! Works great :D
Aug 14 '10 at 05:33 PM
Flipbee9
(comments are locked)
|
|
Edit - Whoops. Sorry about giving the same answer. Was away from my computer and by the time posted - it was already answered. The quickest way would be:
A cleaner way (IMHO) would be to do something like this:
(comments are locked)
|
