# \[Bug report\] Setting value of bool variable in level sequence

**URL:** <https://forums.unrealengine.com/t/bug-report-setting-value-of-bool-variable-in-level-sequence/446994>\
**Category:** Cinematics & Media\
**Tags:** Variable, timeline, bool, bug, unreal-engine, question\
**Created:** [April 10, 2019, 5:13pm UTC](https://forums.unrealengine.com/t/bug-report-setting-value-of-bool-variable-in-level-sequence/446994 "2019-04-10T17:13:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![X\_Starter\_X](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/x_starter_x/32/590039_2.png) [@X\_Starter\_X](https://forums.unrealengine.com/u/X_Starter_X)\
**Post date:** [April 10, 2019, 5:13pm UTC](https://forums.unrealengine.com/t/bug-report-setting-value-of-bool-variable-in-level-sequence/446994/1 "2019-04-10T17:13:50Z")

</div>

I found bug in level sequence.

Steps to Reproduce

1. Create actor
2. Add bool variable, name **Enable** , Instance Editable and Blueprint Read Only
3. Create function, name **SetEnable** , with bool argument **NewState**
4. 

![273854-var.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/f/40f2d4532d4ccfe74579b8e3259d92775eb7ff08.png)

1. Add this actor in scene
2. Create in scene new LevelSequence
3. Add this actor in LevelSequence
4. Variable \*\* Enable \*\* can add a key in the timeline
5. This key calls function **SetEnable**
6. Enjoy!
7. 

![273855-timeline.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/1/c1143fcffe64f0d04701058970b84c5840ec05a7.png)
