Does not appear in the "open level by name" node


Hi. I want to do after a certain event - load another map. But for some reason the “open level by name” I need doesn’t appear here. How to make all such to load a map from this BP?

I don’t think any normal blueprint nodes are available in an object type blueprint.

How can I do this another way? You need to do this in blueprint class. Help please

To start off, just use the level blueprint
To start off, just use the level blueprint

Hey @Stop-TussiN . There are multiple ways you can approach this by. Here are two I can suggest and you can explore rest with these as starting point.

  1. Create OpenLevel Event in Game Instance. You can create separate ones for opening by name or object. For the object you are creating, add variable of the game instance. Now notice you cannot use “Get Game Instance” here. Expose Game Instance on Spawn. From the actor you are creating the object from, add the game instance from there to the object. This way you will have access to Game Instance events and you can call Open Level.



  2. In object create Event Dispatcher that will be called once whatever you are doing gets done. This event dispatcher will pass Level Name. Game Instance, same as 1), will have open level event. In the blueprint actor at the time of spawning object, you will bind an event to the event dispatcher in the object. When the event dispatcher is called, level will open.



I hope this helps. If any further questions, feel free to ask.

Thank you very much, everything worked out!