End game. Event. Load level when object is destroyed.

I have object in game. I need when its destroyed game loads Main Menu.


Do I use LevelBlueprint

Or Objects blueprint And choose of this?

And in BP I need Load Level and What is If object destroyed?

1 Like

Manage your menu from the game instance. In the BP

In the GI

menu

1 Like

(post deleted by author)

Thanks. Trying. Can it be done like Destroy object> check if true>load level? 3 nodes are way easier)

1 Like

If you wanna make it really simple, just open the level when the actor is destroyed :smiley:

I think I Found. Its Event Graph. Event Destroyed. I need simple. Map I make is short and no sequences after or before.

1 Like

Can u suggest what to choose from this?

1 Like

Just the first, but does it work?

I am looking on how to add Object to it. Its Level Blueprint. I could find On destroyed in actors blueprint

1 Like

Yes, you put this in the actor BP.

On Destroy and others Destroyings are available only in Level BP not in actors. What to do? How reference needed object? (Well)

1 Like

Use this in the BP

I cant build project to test yet. Errors. Is this what it should be? Attached to the destoyable object.

In the BP of the object.

It will open the level when the object is destroyed.

You don’t need to build the project, you can just play it.

Doesnt work. Addet it to a monster, kill it and it doesnt load level.

Rather than using ‘local level instance’, just use ‘open level’. I think it is working, but the code you have will load the level as well as what you already have…

1 Like

Oh it finally works, End play > Open level. Thanks. Can say UE is good But needs normal tutorials. I couldt find this basic thing in google. To anyone who needs to end their first indi game. By one of the most common things destroy a goal. So u Add Blueprint (actor) to the object thats going to be destroyed and 2 nodes End Level > open Level.


1 Like