+2
Answered

Regarding Shooter infinite ammo

EdXL 2 weeks ago in Shooter updated by Marti (Lead Developer) 5 days ago 3

Hi, I have set "Infinite ammo" to true on ammo but it still needs to reload the ammo...

According to document:

Infinite Ammo checkbox tells the Shooter system to skip checking and subtracting bullets from the magazine. However, notice that, because bullets won't decrease, your clip size will never be reduced and the shooter won't ever need to reload.

Just wondering how can I stop the player reloading? thanks.

Unity version:
2018.4.21f1
Game Creator version:
1.1.8
Answered

If you want your character to still use bullets, thus reloading the weapon, but want to allow it to have infinite ammo, you can do an easy trick: Disable the "Infinite Ammo" and the On Shoot Actions, use the "Add Ammo".

Now every time the character shoots a bullet, a new one will automagically appear in its storage, providing an infinite amount of ammo.

Hi Marti, I actually meant to skip reloading all together and I have created custom action using "AddAmmoToClip(...)" instead to skip weapon reloading.

Ah I think I changed this since other users wanted to have infinite ammo, as well as reloading the weapon. Happy to hear you managed to create the custom Action. I'll be creating its counterpart in the next update :-)