I am having some troubles working out a problem in my current prototype. I have an Array of multiple Matinee Actors that I want to loop though at a delay. The objective is to have a trigger event play a random matinee, and then after a few seconds reverse and play the next matinee.
The loop doesn’t execute, and only one matinee plays. On top of that the Reverse function isn’t executing either. Any help solving this would be appreciated. Thanks
Did you try assigning each local integer an initial value of 0 to start? Because I don’t see any point where you declare the actual value of those integers in your macro and because of that that entire macro is probably failing since the computer doesn’t know what it’s adding “1” to… right now those values are null. Try putting a value there and see if that helps
I solved your issue. Not sure why your loop wasn’t executing, I re-created your setup (mostly) and got it to work. However, in doing so I realized that this set-up will never work for what you want. Reason being, if you look at your second image, you pull a random matinee from your array and play it when the player triggers this event. Fine, but after you are asking the computer to take the entire array of matinee actors and “loop through” and “reverse” them all. That is what you have scripted. There is no connection between the played matinee and what you are reversing. Why your loop doesn’t work I don’t know I got mine working BUT even if yours worked, it would simply reverse play all your matinees. Not the desired effect. So I created a brand new set-up for you, it doesn’t have a loop at all but functions exactly how you want it to. I have attached screen shots below.
Thanks for the help setting up a solution. I’m curios. For the Play Next Matinee Event, how was that set up exactly? Is it just renamed event node, or is it a custom built macro? Thanks again for all your help.
…Never mind I figured out how to set the custom event after some more searching. Thank you again.
That’s just a custom event. Search for custom event in the search bar by right clicking in the event graph. I just renamed the custom event to "play next matinee "