How to make a cutscene play once?

Okay, so I’m doing a little level tutorial for a project and the game starts off with a quick cutscene.

However, when I die and respawn the cutscene plays again. I’m relatively new to ue4 (especially blueprinting), but I tried the ‘doonce’ thing but unsure where to place it, if at all. Any help would be really appreciated.

This is what I have regarding playing the opening cutscene.

Thanks

1 Like

Ok, so the thing is, when you RestartLevel, it literally restarts the level and causes the beginplay to fire every time.

How to pass this?
You could create a SaveGame, but there’s easier method:
Use a dynamic game instance. In the project settings maps and modes section, there’s thing called Game Instance. From there, create new one.

Inside it, you want to add a custom event that has the cutscene-reference input pin. When it’s called, add DoOnce and after that Play the CutScene reference input pin and do the disable input, delay, enable input things.

Now inside level blueprint, you GetGameInstance and cast it to WhatEverYouCalledYourGameInstance and fire the custom event!

Cheers! :slight_smile:

1 Like

First off, thanks for the reply ^^

Secondly, it seems I’m quite hopeless at this…

Inside it, you want to add a custom event that has the cutscene-reference input pin. When it’s called, add DoOnce and after that Play the CutScene reference input pin and do the disable input, delay, enable input things.

This is where I’m having trouble - I tried creating a cutscene reference but couldn’t on the newgameinstance graph.

It’s just the circled area I’m kinda stuck at now.

inside level blueprint, you GetGameInstance and cast it to WhatEverYouCalledYourGameInstance and fire the custom event! Also inside the level blueprint, you get the reference to the cutscene and connect it with the custom event.

Okay, it seems I derped and didn’t connect the EventBeginPlay to the cast in the level blueprint - everything’s fine now!

Thank you very much ^^ I spent quite a while trying to figure it out myself

Np! Also ty for the karma :wink:

1 Like

I know this page is old, but im having the same issues as you, could you provide screenshots of the main level blueprint how you make it work?
i cant even get that play node. :((

Here is my main level blueprint:


Combined with the custom event above, it works!