Hi!
I looking for a way to change a variable value (float) inside a Blueprint when a cinematic start.
Is there a node who can do that?
Thank you!
Hi!
I looking for a way to change a variable value (float) inside a Blueprint when a cinematic start.
Is there a node who can do that?
Thank you!
Hi, yes, this is possible.
In your Blueprint, select the float variable. In the Details panel, set Expose to Cinematics to True. Compile the BP.
Add the Blueprint to a Sequence. Use the + button to add the variable you exposed as a track. You can then key the variable’s value in the Sequence.
[Image Removed]
For more information on Sequencer, check out the following resources:
Edit: You can also key Blueprint Events in the cinematic track.
I hope that helps!
Hi!
Thanks for your answer.
I search for a script in a blueprint who know when we are in a cinematic or we use sequencer to switch a value to not add track in sequencer for each cinematic.
Sorry if my question wa not clear.
Oh, I see what you mean, thanks for clarifying! There are a few different ways to do this.
One approach would be to use a Fetch method in your BP. You can check in the BP whether a particular sequence is playing, and then use Bind Event On Play to trigger a connected Custom Event. It could look something like this:[Image Removed]
You could also use a Registration method instead, via a Director graph. All Sequences have Director graphs where you can run logic. They’re mostly meant for binding things, but there’s quite a bit of other stuff that can be done in these graphs, too. You can access the Director graph in a Sequence using the graph + landscape button in the Sequencer toolbar:
[Image Removed]
In the Director graph, you can Get the actor that binds to events and send itself to Register when the Director graph is created. See below:
[Image Removed]
Then in the regular BP’s corresponding Custom Event, Bind to the On Play event:
[Image Removed]
I hope that helps!
Thank you very much for the answer, I will try that!
Hi, following up on this. Did it work out for you? If so, I can close this case. Otherwise, happy to help!
Hi!!
sorry for the delay, that work .
You can close the case.
Thank you!!