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"

Trying to call a master boolean in the level blueprint, within another blueprint.

Hey there.

My intent is to have a the level blueprint hold a bool value, which can be referenced in any other blueprint. In this example, I want to press "P" as a debug key, to test a power outage in my game. Pressing "P" toggles a "PowerOutage" bool on the level blueprint, and all instances of my blueprints that contain lights will simultaneously get this bool so that they can turn their lights off.

Here is what I intend for the level blueprint:

alt text

And then this is what I want a blueprint which contains a point light to be:

alt text

I've searched around, watched a few youtube videos, learned about event dispatchers, but I can't seem to use an even dispatcher from the level blueprint, to my blueprint.

Anyone got any pointers?

Product Version: Not Selected
more ▼

asked Mar 07 '15 at 05:24 AM in Blueprint Scripting

avatar image

30 5 5 8

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first

To help you out I made a short video tutorial to illustrate how I would achieve what you seem to be trying to do. If anything is unclear, let me know!


more ▼

answered Mar 07 '15 at 07:50 AM

avatar image

911 45 20 77

avatar image MrMusAddict Mar 07 '15 at 06:15 PM

Thanks a bunch :) I re-purposed a couple things you introduced me to, and now I have everything working perfectly.


(comments are locked)
10|2000 characters needed characters left

you should be able to create an interface and then in your level do a find all actors with interface call. That will return a number of objects. then just call a function that is implemented in the interface.

more ▼

answered Mar 07 '15 at 06:25 AM

avatar image

2.1k 104 68 159

(comments are locked)
10|2000 characters needed characters left

Your input event in the level BP could fire into another BP, like the player, where an Event Dispatcher is called, handling everything simultaneously.

more ▼

answered Mar 07 '15 at 06:23 PM

avatar image

DG Gage
1.6k 62 31 129

(comments are locked)
10|2000 characters needed characters left
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