How to play multiple Matinee Cutscenes in game

So I remember posting a discussion like this awhile back but that was only for playing a death cutscene. Now I want to know, how can I play multiple cutscenes in game. I’m able to play one at the start but I want to be able to play multiple during the game. Like when I interact with a power switch I want to play a short cutscene where my camera moves a bit forward and my character’s arm reaches for the lever and pulls it down. I want to do cutscenes like this throughout the game but how can I go about doing it? I was able to use get actors from class but that only works for one matinee and that’s it. I can’t select different matinees using that, only the first one placed in the map.

Show how you’re getting the first one in the map.
I bet you could get the others just by passing a different Index into the Get:array that comes off of the GetAllActorsOfClass.

I’m able to play the first cutscene by simply referencing it in the level blueprint.

I want to be able to play certain matinees through character blueprints but of course I can’t reference it like I can in the level blueprint. So is there a way I can reference certain blueprints inside character blueprints?

You will need to use something called “Event Dispatcher”.

In your Player Blueprint, it will be on the bottom of “My Blueprint” Tab (By default on left-hand side, where your variables are listed)

Add A Dispatcher and name it what you want.

Now create a custom function and call your Dispatcher

Go to the blueprint you want a function to run in (This case Level Blueprint) and do this -

Now whenever you call the function “MyCustomEvent” created in Step two inside a player character (In your case, while pulling the lever), if done correctly, the matinee will start playing.

I am not that good teaching stepwise, I hope I did not miss anything. Feel free to post again if something failed.

Cheers!

Ah cool, I’ll give this a try later today, and I’ll let you know if it works for me. Thanks dude!

So I’m actually not going to need to play multiple matinees for this current game of mine like I thought I would. But I assume your method will work. So thanks dude! I’ll use this blueprint for whatever project I do next that requires more than two matinees.

No problem. Yes event dispatchers are excellent when you want a function inside a non accessible blueprint to run based on your gamemode or player character. Best of luck!