I was able to make the number of rounds decrease with each shot.
And I made it so that with the number of potrons 0, the weapon could not fire.
Everything works almost well. But there is one problem, if you don't hold down the attack button, And just click on it, the attack will occur even if the number of ammo is 0.
I've been sitting with this problem since morning and I don't know how to solve it. HELP, PLEASE, GOOD PEOPLE
#How do you make ammo not infinite?
1 messages · Page 1 of 1 (latest)
Aren't there like fifty tutorials for this
Track ammo with a global variable
and if the variable reaches 0, disable the weapon component
Can you please make it simpler?
Where is?
You figure it out Mr Einstein
💀
Make a reloading gun or weapon using advanced script in Julian editor
Is this close enough