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"

need help with scripting a blueprint

hello i am a new developer and i have some knowledge of scripting and would like to give it a try. i need a little help choosing the right nodes and the order to place them.if anyone can help me with this i would greatly appreciate the help. thank you to anyone who helps me and for your time. i would like to create a blueprint that does the following: 3 ammo pools that are separate, and have the current and max ammo values. store extra ammo for 1 of the 3 ammo pools (I was thinking of using a variable). increment extra ammo with a trigger box. decrement ammo by pressing a fire button. switch between the ammo types (I would like to try a state machine). stop firing when out of ammo. Print ammo values in each pool to screen.

Product Version: UE 4.15
Tags:
more ▼

asked Apr 24 '17 at 12:19 AM in Blueprint Scripting

avatar image

Magiscene
1 1 2 4

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

1 answer: sort voted first

alt text

here is how you do different types of ammo (0 = event 0, 1 = event 1, ect) alt text

ammo variables and their starting values alt text

math for removing a bullet alt text

how to setup reloading

hope this helps. i didn't get the trigger box setup finished. i'll try posting it later but no guarantees.

ammo1.png (48.8 kB)
ammo2.png (118.7 kB)
ammo3.png (142.7 kB)
ammo4.png (168.3 kB)
more ▼

answered Apr 24 '17 at 02:59 AM

avatar image

dillzilla
23 1 7

avatar image Magiscene Apr 24 '17 at 02:11 PM

thanks for the help i will give it a try

(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