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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

how to change a specific index in array?

i have an array of booleans i want to change a specific index in array is this possible? if yes plz tell me

Product Version: UE 4.12
Tags:
more ▼

asked Oct 10 '16 at 06:29 PM in Blueprint Scripting

avatar image

678GUY
141 33 32 37

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

2 answers: sort voted first

Hey 678GUY-

You can use the Set Array Elem node to set the value of an array element at the array index specified on the node.

Cheers

Doug Wilson

more ▼

answered Oct 10 '16 at 06:43 PM

avatar image Swinny_ Sep 07 '17 at 09:29 AM

thanks Doug!

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

not exactly the same topic but here is a question i cant figure out. i have bullets in a clip. each have a different value for effecting damage weight accuracy and range. But when i pick up the clip i want it to have a total weight using the values inside the array. with out using one weight and multiplying by the index.
(0) damage=.3 weight =.04 recoil effect=.21 range= 1.6 (1) damage=.4 weight =.05 recoil effect=.35 range=2.1 (2) damage=.35 weight= .44 recoil effect=.28 range 1.8

the clip has its own weight variable that would be added to this as well. which we could just say is .85 units so "total weight" =.04+.05+.44+.85 how do i do this using and array?

more ▼

answered Jul 14 '18 at 04:32 AM

avatar image

DakotaEns
1 1

avatar image DakotaEns Jul 14 '18 at 04:32 AM

not exactly the same topic but here is a question i cant figure out. i have bullets in a clip. each have a different value for effecting damage weight accuracy and range. But when i pick up the clip i want it to have a total weight using the values inside the array. with out using one weight and multiplying by the index.
(0) damage=.3 weight =.04 recoil effect=.21 range= 1.6 (1) damage=.4 weight =.05 recoil effect=.35 range=2.1 (2) damage=.35 weight= .44 recoil effect=.28 range 1.8

the clip has its own weight variable that would be added to this as well. which we could just say is .85 units so "total weight" =.04+.05+.44+.85 how do i do this using and array?

(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