Profile image

Making Guns With Limited Ammo

26.9k Sunnyskies  8.3 years ago

How do I program a gun in XML to fire a set number of bullets, then never fire again? I wanna make an extra-realistic replica with an accurate ammo capacity.

  • Log in to leave a comment
  • Profile image
    643 Murks

    Type in BurstCount="(any number is ammo") then in timeBetweenBursts="99999999999999999"

    +1 5.7 years ago
  • Profile image

    @Sunnyskies Wow.

    7.5 years ago
  • Profile image
    26.9k Sunnyskies

    @Racrandall You can also bypass the reload by letting off the trigger momentarily. Kind of rendering the reload timer pointless.

    +1 7.5 years ago
  • Profile image

    @Sunnyskies Its Because The Default Wing Gun Reloads So Quick You Can't See It.

    7.5 years ago
  • Profile image

    @Mudkip

    ??

    8.3 years ago
  • Profile image

    @Sunnyskies Well, they would be so bored that they blew up...

    8.3 years ago
  • Profile image
    5,940 Mudkip

    @Sunnyskies @AwesomeDesign717 HAHAHAHAHAHAHAHA JK DON'T DO IT

    8.3 years ago
  • Profile image
    26.9k Sunnyskies

    @AwesomeDesign717 lol
    There would still be that one guy who would seek out immortality just to do it.

    8.3 years ago
  • Profile image

    @Sunnyskies If you set the time between bursts to 1000000000000000 centuries then it would be pretty realistic

    8.3 years ago
  • Profile image
    26.9k Sunnyskies

    @Gestour Hmm... I was hoping to avoid resorting to that method. All well. I hope no one actually waits 24 hours for the gun to reload.

    +1 8.3 years ago
  • Profile image
    314k Gestour

    Try setting the burst count to the number you want, and then the time between bursts to a really high number

    8.3 years ago
  • Profile image
    26.9k Sunnyskies

    @Gestour ammoCount you mean? That's what I thought too, but it never seems to actually work. Whatever value I set that to for testing, the gun just keeps firing long after it should have stopped.

    +1 8.3 years ago
  • Profile image
    314k Gestour

    One of the options is ammo.
    When that number has been shot, it won't shoot again.
    Pretty straight forward.

    8.3 years ago
  • Profile image

    I have no idea but that would be awesome!

    8.3 years ago