Running level blueprint inside Level Instances

Hello,

I am creating Level Instances for mini-encounters that get placed when the map is loaded. The level instances need to be able to call some functions when the encounter is completed, as well as perform some internal logic that affects objects inside the level instance, for instance, a box collision that opens a door.

My question is where to run this logic. I thought I could place it in the level blueprint of the level instance, but that does not seem to run at all. Is there a better way?

I tried using Packed Level Actors instead, and that allows me to run a script, but only contains static meshes, so no good…

Any suggestions would be helpful!

Thank you,

When you say ‘level instance’, do you mean loaded with a ‘load level instance’ node?

In that case, the level BP works for me…

UPDATE: The Level Blueprint in the Level Instance works fine as long as it is placed dynamically through the Load Level Instance node. Any level instances placed in the map normally does not execute the Begin Play of their Level Blueprint.

So I guess my problem is solved as long as I spawn then dynamically using the node (which is my intention anyways). I had simply dragged the level instance into the map for testing purposes and was surprised that begin play did not trigger on it.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.