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"

Function that can store/accumulate a variable?

I have a function that requires a global variable to accumulate a value, works fine as is, but with one variable for accumulation I cant play the function more than once at a time. I need a solution that can use the function multiple times

Product Version: UE 4.16
more ▼

asked Aug 14 '17 at 04:39 AM in Blueprint Scripting

avatar image

1 1

avatar image janimationd Aug 14 '17 at 05:29 PM

What exactly do you mean by "accumulation"? Is this variable a total that you are adding to by calling this function?

avatar image Alpaca91 Aug 14 '17 at 07:11 PM

yes the variable is added to every time the function is called

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Store global Variables in your GameMode.

If you want to have a list of something like Integers you can use Arrays, or Dictionaries with text keys to look up the variable to accumulate.

more ▼

answered Aug 14 '17 at 07:06 PM

avatar image

2.2k 39 17 52

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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