Announcement

Collapse
No announcement yet.

Randomly generate maze section

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

    Randomly generate maze section

    Hello. I am trying to make a maze that adds a randomly chosen child actor components with transform randomly picked from an array of eight. I set it up so that once a setting was chosen from the array, the chosen index is removed. The problem I've been having is that it spawns the pieces in the removed areas and in an area I didn't have an array for, 0, 0, 0. I have ideas of why it's doing this but I don't know of any solutions.

    #2
    Here the Random nodes execute twice, giving you 2 different results each time. So you Get a random index and Remove (potentially) another random index. Store the result of the random in an int variable and use that instead. You will need to do it in both cases, for the Transform and for the Class.

    Click image for larger version  Name:	Capture.PNG Views:	1 Size:	38.6 KB ID:	1560342

    Comment


      #3
      I haven't gotten to try this yet but I will be able to soon. Thanks for your help!

      Comment


        #4
        I got it to work. Thanks for the help!

        Comment

        Working...
        X