Spawning lights at night time
I have a city level with movable sunlight + atmospheric fog. I would like to know if its possible to spawn movable lights on my lightpoles when the sun is nearing the horizon. I have the lightpoles blueprint setup with spawn function but not sure how to spawn lights when its night time.
asked Mar 11 '14 at 02:49 AM in Blueprint Scripting
ue4-archive ♦♦ STAFF
You can either create the light component with the rest of the lamp post and just toggle it's visibility, or use the AddComponent node to create it at runtime.
so your is issue is you are wanting to communicate across blueprints
What you want is Blueprint Interfaces
"Adding Functions Functions are the primary component of an Interface. Interface functions have no implementation. They exist simply as a definition of inputs and outputs. These can be used to send data through the interface, "
there's a forum discussion about cross blueprint communication using interfaces here:
"It looks like I can't access the variables of a blueprint from another blueprint " http://forums.epicgames.com/threads/974326-Game-Jam-Mougli-s-thread?p=31669687&viewfull=1#post31669687
Lauren Ridge: Make sure to add the interface to both the Blueprint that you want to call the interface (for example, a planet) and the Blueprint that you want to implement the interface (for example, a moon).
More links and details in her entire post:
Follow this question
Once you sign in you will be able to subscribe for any updates here