can someone help with Ammo and reload please?
tollhousestudio
Member Posts: 166
I have a basic shooter set up, you press a button and the gun auto fires kinda like a machine gun would, and when you let go it stops... but I would like it to have ammo, so say like 30 bullets per clip? so when it goes empty it will auto reload which will take a few seconds or so.
Also maybe a reload button too? so you can load up when ever you need to.
Can anyone help with this?
Also maybe a reload button too? so you can load up when ever you need to.
Can anyone help with this?
Comments
Not sure how to do that? is that a rule?
I did this:
made a button called reload, added touch rule, then change attribute to game.Ammo+30
But this always adds 30, so if I hit it a few times before I fire I then have 90 bullets in the clip.
Is this the right method?
you're a legend!