[UPDATE] Puzzle Mechanic. More about Event Dispatchers.
So far here is where I have gotten on the Event dispatchers for the puzzle.
The documentation while helpful is so vague. And the info i do find on them i have a hard time applying their logic to the situation i am wanting to use them for.
If anyone knows that i am headed in the correct direction or not please let me know.
-
So here is where i changed the ‘Branch’ with the ‘get’ on the bool to ‘set’. So it should be set to “is on?”
If i understand the code correctly then it should mean:
That when I walk into the collision of the torch, i have the ability to push a button.
When i push the allotted button then it turns the torch on.
The bool says “Hey, I am on fire!” allowing us to use event dispatchers to let it talk to another BP.
Also this allows us to set up the logic for the Event Dispatcher?
-
Here is where some confusion lies:
Right here I Assigned the Event “Gate Dispatcher” to the boolean “Is on?”
If I understood correctly. Since i set the boolean above it should mean that the event dispatcher calls on the event when the torch “is on?”
Or should I bind this event to this blueprint and have it called from the gate?
And is this the way to set up the logic for the Event Dispatcher?
Is everything I’ve done inside this blueprint right?
-
So here is where i got super confused.
Do i need more than one dispatcher and really where does it need to be assigned from?
For instance, if it only needs one in order for this code to work, then would i need the dispatcher to be on the gate or the torch?
So I made 2 and tried to connect them, it doesnt show a compiler error, but then again the gate doesnt do anything either.
-
Only showing this in the event that it messes up the gates movement.
So that hopefully this is what is messing it up and i got the event dispatcher correct.
Probably not but i want you to see what everything is connected to so you know what might be causing this not to work. (If you dont already)
-
Last but not least here is a picture of my timeline that i added into the gates blueprint.
I don’t completely understand timelines. So maybe if you’re a person who says:
“Hey, I might not understand event dispatchers, but i do understand timelines and man this guy screwed up”
then maybe you could send me in the right direction.
It is a vector track, supposedly sending the gate down 50 units per keyframe. Not too sure.
So now my last question(hopefully) is this:
On the 3rd and 4th picture is shows the scripting that is for the gate.
When done correctly should it mean that “Once the torches are lit, then call the timeline to open the gate?”
I may have completely over thought this. Some more answers and advice would be so much appreciated.
Thanks,
Austin