# I’m trying to make a Verse script that teleports objects (like walls, ext) between two locations when specific devices or triggers (chosen in the Unreal Editor) are triggered, but my current code doesn’t work — how can I do this correctly?

**URL:** <https://forums.unrealengine.com/t/i-m-trying-to-make-a-verse-script-that-teleports-objects-like-walls-ext-between-two-locations-when-specific-devices-or-triggers-chosen-in-the-unreal-editor-are-triggered-but-my-current-code-doesn-t-work-how-can-i-do-this-correctly/2666564>\
**Category:** Verse\
**Tags:** unreal-engine, unreal-editor-for-fortnite, fortnite-creative, editor, question, fortnite\
**Created:** [October 18, 2025, 9:07pm UTC](https://forums.unrealengine.com/t/i-m-trying-to-make-a-verse-script-that-teleports-objects-like-walls-ext-between-two-locations-when-specific-devices-or-triggers-chosen-in-the-unreal-editor-are-triggered-but-my-current-code-doesn-t-work-how-can-i-do-this-correctly/2666564 "2025-10-18T21:07:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![LLIaByxoEd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LLIaByxoEd](https://forums.unrealengine.com/u/LLIaByxoEd)\
**Post date:** [October 18, 2025, 9:07pm UTC](https://forums.unrealengine.com/t/i-m-trying-to-make-a-verse-script-that-teleports-objects-like-walls-ext-between-two-locations-when-specific-devices-or-triggers-chosen-in-the-unreal-editor-are-triggered-but-my-current-code-doesn-t-work-how-can-i-do-this-correctly/2666564/1 "2025-10-18T21:07:03Z")

</div>

![Screenshot 2025-10-18 200525](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/b/a0b9e993982be8c6cfa904f720861ba644f54f14.png)🥵 I’m trying to write a Verse script for my Fortnite map that teleports walls or props from one location to another when triggered by a device or trigger or something else FROM SCENE. I can select in the Unreal Editor, and then moves them back when another device is triggered. My current attempt doesn’t work — can someone show the correct way to do this?

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [October 19, 2025, 12:05am UTC](https://forums.unrealengine.com/t/i-m-trying-to-make-a-verse-script-that-teleports-objects-like-walls-ext-between-two-locations-when-specific-devices-or-triggers-chosen-in-the-unreal-editor-are-triggered-but-my-current-code-doesn-t-work-how-can-i-do-this-correctly/2666564/2 "2025-10-19T00:05:22Z")

</div>

`if(TeleportProp.TeleportTo[PositionProp,RotationProp]){}`

Because the `.TeleportTo[]` is a failable/decides function and you need to put it inside an if in case it will fail

---

<div class="post-metadata">

**Author:** ![LLIaByxoEd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LLIaByxoEd](https://forums.unrealengine.com/u/LLIaByxoEd)\
**Post date:** [October 19, 2025, 10:57am UTC](https://forums.unrealengine.com/t/i-m-trying-to-make-a-verse-script-that-teleports-objects-like-walls-ext-between-two-locations-when-specific-devices-or-triggers-chosen-in-the-unreal-editor-are-triggered-but-my-current-code-doesn-t-work-how-can-i-do-this-correctly/2666564/3 "2025-10-19T10:57:47Z")

</div>

Thanks a lot, but I still need something different. Right now the script only teleports the object after a delay ( sleep(3.0) ), but I need it to teleport when a chosen device or prop in the scene changes state (like when a trigger is activated), and not just in one direction but also back, depending on which device I select. Something like in this picture. I also wrote the comments (#) below the code what the code is supposed to do.

 ![Screenshot 2025-10-19 135118](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/a/5/2a55edd55b010a92e2bc88151a5c6bc83255303d.png)

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [October 19, 2025, 11:34am UTC](https://forums.unrealengine.com/t/i-m-trying-to-make-a-verse-script-that-teleports-objects-like-walls-ext-between-two-locations-when-specific-devices-or-triggers-chosen-in-the-unreal-editor-are-triggered-but-my-current-code-doesn-t-work-how-can-i-do-this-correctly/2666564/4 "2025-10-19T11:34:16Z")

</div>

add a  
`@editable Trigger : trigger_device = trigger_device{}`

replace OnBegin with

```auto
OnBegin<override>()<suspends>:void=
            Trigger.TriggeredEvent.Subscribe(MoveIt)

```

and change the top of MoveIt to  
`MoveIt(MaybeAgent:?agent):void=`

---

<div class="post-metadata">

**Author:** ![LLIaByxoEd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LLIaByxoEd](https://forums.unrealengine.com/u/LLIaByxoEd)\
**Post date:** [October 19, 2025, 3:02pm UTC](https://forums.unrealengine.com/t/i-m-trying-to-make-a-verse-script-that-teleports-objects-like-walls-ext-between-two-locations-when-specific-devices-or-triggers-chosen-in-the-unreal-editor-are-triggered-but-my-current-code-doesn-t-work-how-can-i-do-this-correctly/2666564/5 "2025-10-19T15:02:14Z")

</div>

Can I make objects movable instead of props? If it is possible, what changes are needed in code?

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [October 19, 2025, 4:26pm UTC](https://forums.unrealengine.com/t/i-m-trying-to-make-a-verse-script-that-teleports-objects-like-walls-ext-between-two-locations-when-specific-devices-or-triggers-chosen-in-the-unreal-editor-are-triggered-but-my-current-code-doesn-t-work-how-can-i-do-this-correctly/2666564/6 "2025-10-19T16:26:35Z")

</div>

Could you elaborate on what you mean? As in make static meshes movable using verse?

---

<div class="post-metadata">

**Author:** ![LLIaByxoEd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LLIaByxoEd](https://forums.unrealengine.com/u/LLIaByxoEd)\
**Post date:** [October 19, 2025, 4:38pm UTC](https://forums.unrealengine.com/t/i-m-trying-to-make-a-verse-script-that-teleports-objects-like-walls-ext-between-two-locations-when-specific-devices-or-triggers-chosen-in-the-unreal-editor-are-triggered-but-my-current-code-doesn-t-work-how-can-i-do-this-correctly/2666564/7 "2025-10-19T16:38:31Z")

</div>

Yes, I’m talking about static meshes like walls, floors, etc.  
P.S. I figured it out myself — I found an option that makes static meshes movable like props.

![Screenshot 2025-10-19 193656](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/2/3/c230f987340b686d4a48114b5e350f93d3d576e5.png)
