x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Gun recharging

Hello, guys. Can anybody help me, please. I want to implement a recharging / reload to my gun. What I have now: alt text

Curr.ammo is increasing, but AmmoMax not decreasing, and I want it. And I don`t know how correct I`m doing it, maybe you prompt me another way.

Product Version: Not Selected
Tags:
reload_.png (359.1 kB)
more ▼

asked Jan 13 '15 at 07:24 PM in Blueprint Scripting

avatar image

ThierryH
8 3 7 8

avatar image Glotty Jan 14 '15 at 11:48 AM

What should ammomax be decreasing by? I'm surprised curr. Ammo is changing at all as the middle branch in your code is effectively doing (ammomax - curr. Ammo) + curr. Ammo which if I'm right would just be setting curr. Ammo to be ammomax. If you give me specifics of how you want this to work I could help more.

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

It sounds like you're using MaxAmmo for two different things: The amount of ammo you have to reload with, and the amount of ammo the gun can hold.

Try something like this:

alt text

capture.png (127.7 kB)
more ▼

answered Jan 14 '15 at 12:00 PM

avatar image

Sneftel
470 20 20 40

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question