# Can i move an Actor inside a Widget's Blueprint?

**URL:** <https://forums.unrealengine.com/t/can-i-move-an-actor-inside-a-widgets-blueprint/473171>\
**Category:** UI\
**Tags:** moving, actor-blueprint, doors, unreal-engine, Widget, question\
**Created:** [October 19, 2020, 4:03pm UTC](https://forums.unrealengine.com/t/can-i-move-an-actor-inside-a-widgets-blueprint/473171 "2020-10-19T16:03:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_b2e78c191](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b2e78c191](https://forums.unrealengine.com/u/anonymous_user_b2e78c191)\
**Post date:** [October 19, 2020, 4:03pm UTC](https://forums.unrealengine.com/t/can-i-move-an-actor-inside-a-widgets-blueprint/473171/1 "2020-10-19T16:03:08Z")

</div>

Hi, i’m still a newbie with UE4, but i was trying to do some kind of basic parkour game with the Advanced Locomotion System.

In this game i have two zones that are accessible only through the code thats hidden in the map and you have to find it while parkouring, so i made this widget (a simple textbox) that pops up when you’re near the door, if you enter the right code i want the door to like teleport away ('cuz i’m not good at animating and idk if its possible to move a thing slowly in UE4), so i made a script in the blueprint editor of the widget and made a branch to see if the code is right but when i try to create the node to move the door it doesn’t show like SetActorLocalOffset or SetActorLocation, so i was asking if it’s possible (and if yes how) to move an actor (in this case the door’s blueprint) from inside the textbox widget’s blueprint.

Sorry i was not clear in explaining or i made errors, if you didn’t understand something just ask i’ll try to explain it better, and ask if you want to see a pic of the blueprint’s nodes.

---

<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 19, 2020, 5:31pm UTC](https://forums.unrealengine.com/t/can-i-move-an-actor-inside-a-widgets-blueprint/473171/2 "2020-10-19T17:31:32Z")

</div>

- here’s some door with a collision box:

 ![319287-door2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/3/3b3ba6cc4fd6b1e114594072b91d7fbc28772ca0.jpeg)

- the code is in the string variable
- the graph of the door actor:

 ![319288-door.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/4/6/646ea0dc1b28f62ef6102a44a3ef44d66293e6de.jpeg)

- when we enter the box, create a _focusable_ widget with an `Editable Box`, add it to the screen and give it `Keyboard Focus`
- as we type, the editable text’s event triggers the checks in the door actor
- we check the length of the entered text; when equal, check for matching text
- if it does not match, the text field is reset
- if it does match, we get rid of the widget open the door with a timeline

* * *

This will need more work, obviously but the method should be sound.

[![Image from Gyazo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/8/de806529879beafc46cc6c2e38355d1db0d9fa20.gif)](https://gyazo.com/ab721c45742910f5425624e7fd23a962)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b2e78c191](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b2e78c191](https://forums.unrealengine.com/u/anonymous_user_b2e78c191)\
**Post date:** [October 19, 2020, 11:31pm UTC](https://forums.unrealengine.com/t/can-i-move-an-actor-inside-a-widgets-blueprint/473171/3 "2020-10-19T23:31:54Z")

</div>

Okay, this worked,i tried following what you said and the script in the picture and it looks good, but i have a question: Can i reuse the actor’s blueprint to make another door? 'Cuz i tried spawning the 2nd blueprint in the scene and the first door doesn’t work anymore.

---

<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 20, 2020, 7:58am UTC](https://forums.unrealengine.com/t/can-i-move-an-actor-inside-a-widgets-blueprint/473171/4 "2020-10-20T07:58:42Z")

</div>

You can have as many as you want, each with a unique key, too…

[![Image from Gyazo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/d/edd4ec61887b3a24ebde66cfbc793e67a7f5c8eb.gif)](https://gyazo.com/1fd15adac7cd9485b08556f3bed1ade4)

… but they will only work once. Not sure if you want to reuse them or not. Atm, it’s using the _DoOnce_ node so they can be only triggered once. You will need to adapt the script to your needs from here on.
