Announcement

Collapse
No announcement yet.

[Array] Create a group of integer on my GET node

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Array] Create a group of integer on my GET node

    i have created an event that change value of my price in one of my item in my array. It need a target to know which item to change.

    Is there a way to get 3 specific item from my array and group them ?

    Click image for larger version

Name:	group of array..PNG
Views:	1
Size:	57.9 KB
ID:	1171850

    i only found "Random Integer in range"
    i want "Integers in range"
    not random

    #2
    The Get Node can only ever return a single object inside an array defined by the element index you provide.

    You will have to perform N number of Get operations to return N number of objects. This is commonly done using a ForLoop.
    Im an Moderator on UnrealSlackers Discord! Which is a Community driven group of likeminded people here to discuss UE4! Join UnrealSlackers on Discord!

    Comment


      #3
      if you want make new array, with data use old array. first you must select data from old array first. then set into new array.

      here the sample, i set new array, from arrayOfMaster[3] , arrayOfMaster[4] and arrayOfMaster[5]

      sorry for my bad english.

      Click image for larger version

Name:	setNewArray.png
Views:	1
Size:	94.0 KB
ID:	1100185

      Comment


        #4
        @DevilsD
        can you show me an example when you will have some time ? I m very visual

        @udin jelek
        My array of master are Master_Blueprint.
        And the target (of what i want to do ) is need to be an actor

        Click image for larger version

Name:	inventory macro.PNG
Views:	1
Size:	174.8 KB
ID:	1100187
        Last edited by Oink_Oink; 02-10-2016, 12:42 AM.

        Comment


          #5
          then like devilsD said, just make for loop.

          here the sample

          sorry for my bad English

          Click image for larger version

Name:	loopArray.png
Views:	1
Size:	144.0 KB
ID:	1100238
          Last edited by udin jelek; 02-10-2016, 11:17 AM.

          Comment


            #6
            Exactly !
            the node "ForLoop" was the node i needed
            thx all
            Last edited by Oink_Oink; 02-10-2016, 09:32 AM.

            Comment

            Working...
            X