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"

Issues with Random Array elements?

Somehow when I set my element in Get to a number, things work fine, but when I use random integer in range, it no longer works fine, and gives me the wrong array element. Is there anything wrong with getting random numbers in arrrays that I am unaware of?

Product Version: UE 4.10
Tags:
more ▼

asked Feb 12 '16 at 07:50 PM in Blueprint Scripting

avatar image

UpARiver
225 21 29 91

avatar image UpARiver Feb 12 '16 at 08:09 PM

EDIT: The problem seems to be with random integers in Range. They Dont work, it only works if I set one number in Get, but if I use the random integers in Range, the number that I get in the array willl be different to the random number.

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

1 answer: sort voted first

I found it: If you want just one random number, then do the random integer from range, set the result to a variable, and use the variable from then on. If you pin the same Random integer from range to different nodes, it will always generate a different Number. Hope it helps someone as well.

more ▼

answered Feb 14 '16 at 11:04 AM

avatar image

UpARiver
225 21 29 91

(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