How do I communicate to the level blueprint?
So in my level blueprint I have a matinee which plays when you overlap with a trigger. I made it rewind when it's done playing and I set a branch on it so that you can't play it twice in a row. What I want to do now is to make a blueprint that communicates with the level blueprint and sets the condition to true so the player can activate the matinee again. Here's my blueprint to play the matinee: If there's no way to communicate with the level blueprint, is it possible to play the matinee from a regular blueprint?
asked Aug 06 '15 at 11:39 PM in Using UE4
There no way to do that in blueprints, only in C++. There simple workaround in your case, instead of setting variable in level blueprint, use variable in different class
answered Aug 07 '15 at 12:12 AM
Have you tried to make the trigger box into its own blueprint and have it trigger through that instead of the level blueprint?
Go to your blueprints folder, right-click and select to create a Blueprint asset. Click on All Classes and type in "TriggerBox." Name it whatever you would like. Then put in the blueprints shown in this image:
This basically says, "Hey, I overlapped with an actor, so once and only once I'll get all the matinee actors and look at their names and if they name of the matinee actor is the one I know, I'll play it." You can name your MatineeActor whatever, I just kept the default since I was only making an example. I wouldn't be surprised if there are better practices for this, but this is quick and gets you the result you want. You could even make a variable called "MatineeName" and have it be editable/public so you can edit the name in Details from the main level viewport when you place the trigger actor. To do that you'd just right click the pink input node in the String Equals and promote it to a variable, then in the left hand side click the closed eye symbol. Now when you look at your custom trigger box you can see the MatineeName variable is editable so you can trigger a different matinee actor with it. (I added a light so I knew where to step.)
answered Aug 07 '15 at 02:40 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here