x

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"

Communicate between two level blueprint

Hi,

The level in our game is quite big and it contains many sub-levels. The persistent level and each sub-level will have its own level blueprint. Now we want to communicate between different level blueprints and did not find a way to do this. Is there any existing way to do that?

I searched the forum and the answerhud but only got the answer for how to communicate between level blueprint and class blueprint.

Thank you for your help in advance!

KIDD

Product Version: UE 4.7
Tags:
more ▼

asked May 14 '15 at 02:21 PM in Blueprint Scripting

avatar image

Kiddxin
1 1 2 1

avatar image Kiddxin May 21 '15 at 01:48 AM

Hi,

Since no more information on this, I would like to close this. We used similar method as game instance to achieve our results currently. Thank you!

KIDD

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

3 answers: sort voted first

Hello.

I don't know is this is exactly what you are looking for but, you can store some variables in your game instance to use them between levels. This tutorial series was useful to me : https://www.youtube.com/playlist?list=PL3hM7_RDaHMynZhN3eXYEguGJoxlUTpDf

Hope it help

more ▼

answered May 14 '15 at 03:02 PM

avatar image

Demilliac
3 1 2 3

avatar image Kiddxin May 15 '15 at 01:34 AM

Hi Demilliac,

Thank you for your answer. Now I know that the GameInstance can be shared by different levels. I may think about how to use that to support what we want to achieve.

But before that I want to check if there is any existing way to support this in UE4. I know we can use Custom Event and EventDispatcher to send information within Blueprint or between Class blueprint and level blueprint. Is there an existing way to use event to communicate between level blueprints?

I tried to create a variable in one of the level blueprint and want to use it to reference another level blueprint actor. But seems the Details panel of Level blueprint actor don't allow me to set the reference. When I select the Level Blueprint actor, the detail panel is always empty and rendered "Select an object to view details".

Thank you!

KIDD

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

anouther option is storing values in the character blueprint possibly in a trigger system i.e. a bool value of has xboss been killed. that way if the player comes back the boss room is already open. this may be constrained by your type of game however. ie multi player games this might be more tricky.

more ▼

answered May 15 '15 at 09:31 AM

avatar image

Sychris
116 6 10 14

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

use game instance

more ▼

answered Dec 22 '16 at 02:33 AM

avatar image

youthnick
175 1 5 7

avatar image youthnick Dec 22 '16 at 02:34 AM

u can transfer any variable with this class

(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