# Flashing light bulb on garland

**URL:** <https://forums.unrealengine.com/t/flashing-light-bulb-on-garland/472239>\
**Category:** Rendering\
**Tags:** unreal-engine, Lighting, question\
**Created:** [October 1, 2020, 12:14pm UTC](https://forums.unrealengine.com/t/flashing-light-bulb-on-garland/472239 "2020-10-01T12:14:59Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_aea0f740](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_aea0f740](https://forums.unrealengine.com/u/anonymous_user_aea0f740)\
**Post date:** [October 1, 2020, 12:14pm UTC](https://forums.unrealengine.com/t/flashing-light-bulb-on-garland/472239/1 "2020-10-01T12:14:59Z")

</div>

Hi there,  
i’d like to do a garland, which lights up one after the other.  
Do i must build one BP for each or a single with all light bulb?  
Best regards

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 1, 2020, 12:42pm UTC](https://forums.unrealengine.com/t/flashing-light-bulb-on-garland/472239/2 "2020-10-01T12:42:47Z")

</div>

Go for a single actor with multiple light components (you will want to disable shadow casting if you have many lights).

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [October 1, 2020, 1:29pm UTC](https://forums.unrealengine.com/t/flashing-light-bulb-on-garland/472239/3 "2020-10-01T13:29:07Z")

</div>

Make a blueprint with a spline component. Add lights in the construction script, and add them all to an array. Then you’ll be able to control their brightness and color using array indices (with some math involved to make them flash in cetrain patterns).

 ![316766-lights.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/6/ca6b94148eaf157ff7e5fe1d378140cf854d864c.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 1, 2020, 1:34pm UTC](https://forums.unrealengine.com/t/flashing-light-bulb-on-garland/472239/4 "2020-10-01T13:34:24Z")

</div>

Didn’t you make a post with some lights flashing in patterns recently?

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [October 1, 2020, 1:37pm UTC](https://forums.unrealengine.com/t/flashing-light-bulb-on-garland/472239/5 "2020-10-01T13:37:31Z")

</div>

There the OP wanted them to light up 1-1-1-1-1-1, then 2-2-2, then 3-3. That involved a lot less math than if you’d want to make the lights flash like in a real garland.

If you mean something else, that wasn’t me =)

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [October 1, 2020, 1:51pm UTC](https://forums.unrealengine.com/t/flashing-light-bulb-on-garland/472239/6 "2020-10-01T13:51:20Z")

</div>

Follow up: a simple color change pattern:

 ![316768-colorchange.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/9/ae9d221dc7018d664882e1520990d5ebe6a69e78.png)

![316769-garland.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/c/7/ac73ee3534818d791fb438fd79f0aabcbee90059.gif)

PS: the gif isn’t perfectly looped so it looks a bit off.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_aea0f740](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_aea0f740](https://forums.unrealengine.com/u/anonymous_user_aea0f740)\
**Post date:** [October 1, 2020, 2:35pm UTC](https://forums.unrealengine.com/t/flashing-light-bulb-on-garland/472239/7 "2020-10-01T14:35:45Z")

</div>

Hi there, quite difficult for me to reproduce your BP,  
as shown here:

![316770-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/6/fa61d855878f1ea5b128a0c708f4c1939b4e756c.jpeg)

i’d like to start the first buld lighning and have it all at the end.  
i’d done something like this:

 ![316781-capture-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/e/e2ea2b32934c7752cd6fd9237ee33a676e0cc5be.jpeg)

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [October 1, 2020, 3:11pm UTC](https://forums.unrealengine.com/t/flashing-light-bulb-on-garland/472239/8 "2020-10-01T15:11:14Z")

</div>

Add them to array, and then you can Set Scalar Parameter on Materials for each of them with a timer.

Have you set the emissive material with parameters yet?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_aea0f740](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_aea0f740](https://forums.unrealengine.com/u/anonymous_user_aea0f740)\
**Post date:** [October 1, 2020, 3:20pm UTC](https://forums.unrealengine.com/t/flashing-light-bulb-on-garland/472239/9 "2020-10-01T15:20:02Z")

</div>

for the moment i just made a BP with a point light and i can attach it to a bulb but just one by one,  
i wolud like to link in to all the bulbs.  
Do i must construct a spline with all the buuble or is it possible to made a scalar parameter for each?

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [October 1, 2020, 3:37pm UTC](https://forums.unrealengine.com/t/flashing-light-bulb-on-garland/472239/10 "2020-10-01T15:37:32Z")

</div>

You can add meshes to an array and set scalar parameters for them individually:

 ![316790-lights.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/1/be17f74fd3ec27db74b114f6de99fdb9ae9a34f3.png)
