# In blueprints, in a function, using a timer, dragging local variable onto global variable to change it causes an error

**URL:** <https://forums.unrealengine.com/t/in-blueprints-in-a-function-using-a-timer-dragging-local-variable-onto-global-variable-to-change-it-causes-an-error/370451>\
**Category:** Editor Scripting\
**Tags:** Variable, timer, unreal-engine, local, function, Blueprint, question\
**Created:** [September 14, 2016, 6:33pm UTC](https://forums.unrealengine.com/t/in-blueprints-in-a-function-using-a-timer-dragging-local-variable-onto-global-variable-to-change-it-causes-an-error/370451 "2016-09-14T18:33:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Load\_Time](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Load\_Time](https://forums.unrealengine.com/u/Load_Time)\
**Post date:** [September 14, 2016, 6:33pm UTC](https://forums.unrealengine.com/t/in-blueprints-in-a-function-using-a-timer-dragging-local-variable-onto-global-variable-to-change-it-causes-an-error/370451/1 "2016-09-14T18:33:44Z")

</div>

When inside a blueprint function, setting a timer by function, creating both a variable and local variable for either a float or a handle, attaching the variable to the timer (either to Time or Handle pin), and then dragging out the local version of that variable type, dragging it on top of the variable to change it, and then compiling causes an error.

It seems to be associated with a timer, because doing this without a timer doesn’t cause an error.  
Right clicking on the variable to change it to the local variable and compiling does not cause the error.  
This has been replicated in a blank project.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [September 14, 2016, 6:57pm UTC](https://forums.unrealengine.com/t/in-blueprints-in-a-function-using-a-timer-dragging-local-variable-onto-global-variable-to-change-it-causes-an-error/370451/2 "2016-09-14T18:57:39Z")

</div>

Hey Load Time,

I have been able to reproduce your issue, and have entered a bug report, which you can track the status of here: [Unreal Engine Issues and Bug Tracker (UE-36000)](https://issues.unrealengine.com/issue/UE-36000)

Thank you for your report.

Have a great day

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_49a519741](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_49a519741](https://forums.unrealengine.com/u/anonymous_user_49a519741)\
**Post date:** [December 29, 2017, 12:40pm UTC](https://forums.unrealengine.com/t/in-blueprints-in-a-function-using-a-timer-dragging-local-variable-onto-global-variable-to-change-it-causes-an-error/370451/3 "2017-12-29T12:40:30Z")

</div>

Hey . I ran into the same issue but it doesn’t require that a timer be involved. I have a float member variable in my graph (plugged into the B pin of a \<= node). I drag/drop a local variable on top to rename it and recompile. I get an error saying " uses an invalid target". Since the issue you listed is still open I thought I should comment here before posting a new issue.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [January 4, 2018, 1:00pm UTC](https://forums.unrealengine.com/t/in-blueprints-in-a-function-using-a-timer-dragging-local-variable-onto-global-variable-to-change-it-causes-an-error/370451/4 "2018-01-04T13:00:41Z")

</div>

Hey Jin\_VE,

Looks like your comment may have gotten cut off at the end there. Could you clarify what your repro steps are for this issue so I can add them to the internal ticket?

Thanks
