My requirement is I created an array of sequences, that will happen based on the same input key. For example, I press the βVβ key in the keyboard to unlock the window, then pressing the same key to open the window, then pressing the same key to close window, and so on. This will be like more than 10 sequences in a row. I cannot put branch node for each of them.
What I did is I put boolean for each of these sequences to check if the sequence is completed or not. And created an array with the collection of all the booleans. Each time when I press the βvβ key, it will check from the index 0 to the index of the last sequence (using the retriggable delay and branch nodes). If an index is true, it will check the next index, and so on. When an index results false, I want an Event to be played.
This is where I got stuck. For each index, there is a separate event has to be played. So, I create a variable for the index that resulted in false. But I do not know how to run an event based on this resulted index.
Can anyone please give me which node will do what I am trying to achieve.
Many Many Thanks in advance and I really appreciate your help.
Another option is to make each action be its own function, and then build an array-of-delegate, and bind each function to a slot in the array, and then invoke the delegates per array. I think you might need to actually indirect each of THOSE through a separate object, though, as delegates themselves canβt be in arrays (at least not in blueprints.) This would be Data Driven β’ and therefore AAA β’.
You could also do this by chaining Gate objects, although wiring everything up to close the gate behind them is probably more wiring than dispatching the things in a big select.
Or you could, the horror, use C++, where an array-of-function-pointers is NBD and you can just index and call.
Hi, I tried this method. It seems the events are not running from the Select node. Can you please check if you are able to see with Print string connected to each event.