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?

:hot_face: 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?

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

1 Like

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.

add a
@editable Trigger : trigger_device = trigger_device{}

replace OnBegin with

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

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

1 Like

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

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

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

1 Like