How to open and close multiple doors in a random sequence
Hi all, I am working on a personal project that has a room will multiple doors. Behind each door is a monster. I want to open one of the doors randomly to reveal an enemy, and then have that same door close after a delay. I am having some trouble with the closing part, and was wondering if I could get some suggestions. I have attached my current Blueprint for this project. Thanks!
Ahh makes sense, I see now why that is. When you first pull off the "Get" you need to store that matinee actor as a variable and use the variable as the input to the "Play" and "Reverse" otherwise it basically thinks each time it should pull a "random" matinee index, that is what the code currently says. Read each node individually, the "Play" wire flows back from target to the Get node and asks for a "random" matinee, it plays that one, then has a delay, then goes to "Reverse" node, which also draws back from the target to the Get node and asks for the same thing "give me a random index" and it plays that one in reverse. The computer doesn't understand the "logic" behind play and reverse as a human would. So you need to store the first matinee as a variable and never draw back to the Get node again in the same execution chain.
answered Mar 16 '18 at 03:50 AM
Nebula Games Inc
Follow this question
Once you sign in you will be able to subscribe for any updates here