Day Night Cycle Custom Event
I am fairly new to BP scripting and have no coding knowledge
I've followed the tutorial on this page: https://wiki.unrealengine.com/Tutorial:_Time_of_Day
The custom event nodes I've place in other blueprints don't appear to work though. Is there something I'm missing that wasn't explained in the tutorial? My understanding is that Remote events from the level blueprint are able to be read by all other blueprints in the level?
asked Apr 27 '17 at 08:18 AM in Blueprint Scripting
Right I guess I could do it that way, but that also means that pretty much anything Id want to do that revolves around my day night would have to be created withing my level BP wouldn't it. Doesn't sound very efficient or condensed. Not to mention needing it to work with all my child actors for other BP's too. Requiring me to go back each time to add another one in. I'm looking for a good permanent solution rather than a patchwork.
The tool tip on remote event says it finds the event name on all other levels, but in that case why use it at all in the same level like the tutorial does? Also the tutorial doesn't not have the target self variable, why is that? Does that just mean its only used to read the state of other levels and has nothing to do with the actual current level?
Whatever the case may be I have found my solution using event dispatchers called from a BP I setup for my directional daylight actor.
It is basically exactly the same as my now discarded LevelBP setup from the tutorial with the exception that I call two event dispatchers at the end.
Now in my fluorescent_light_01_MASTER BP I can bind those two functions to their respective events within that BP using a get all actors of class node that outputs to the binds target. I wasn't sure about this as it seemingly has to get my daylight_BP upon each load which may get bad down the line if there are thousands of these light actors and whatnot but maybe somebody who has more experience than me can properly comment on it.
answered Apr 28 '17 at 03:07 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here