Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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: alt text If there's no way to communicate with the level blueprint, is it possible to play the matinee from a regular blueprint?

Product Version: UE 4.8
blueprint.png (105.0 kB)
more ▼

asked Aug 06 '15 at 11:39 PM in Using UE4

avatar image

88 29 40 45

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

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

more ▼

answered Aug 07 '15 at 12:12 AM

avatar image

36.7k 932 169 1111

avatar image Brandon236 Aug 07 '15 at 01:53 AM

I'm not sure how to use a variable in a different class. The basic thing I want is for the matinee to run once but then have it be able to run again if the player touches another trigger. Similar to having a condition and setting it to false but then touching another trigger sets it to true.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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:

alt text

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.)

alt text

capture.jpg (215.9 kB)
capture.jpg (85.3 kB)
more ▼

answered Aug 07 '15 at 02:40 AM

avatar image

117 4 8 17

avatar image Brandon236 Aug 07 '15 at 04:29 AM

I'm a little confused over how to get the matinee actor after the get display name node.

avatar image Sephern Aug 07 '15 at 04:35 AM

When you right click to create a new node (or drag off from Get Display Name) just hit = or type "equals" and you should see Equals (String) or something close to that.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question