# I want to move the prop when I teleport.

**URL:** <https://forums.unrealengine.com/t/i-want-to-move-the-prop-when-i-teleport/2678439>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [November 25, 2025, 5:37am UTC](https://forums.unrealengine.com/t/i-want-to-move-the-prop-when-i-teleport/2678439 "2025-11-25T05:37:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![studyingUEFN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/studyinguefn/32/997250_2.png) [@studyingUEFN](https://forums.unrealengine.com/u/studyingUEFN)\
**Post date:** [November 25, 2025, 5:37am UTC](https://forums.unrealengine.com/t/i-want-to-move-the-prop-when-i-teleport/2678439/1 "2025-11-25T05:37:49Z")

</div>

I’m trying to write a verse code that will activate the prop and barrier device when the player teleports, but I get the following

> Error Code:move\_floor.verse(34,46, 34,55) : Script error 3509: This function parameter expects a value of type agent-\>void, but this argument is an incompatible value of type type{\_():void}.

> using { /Fortnite.com/Devices }
> 
> using { /Verse.org/Simulation }
> 
> using { /UnrealEngine.com/Temporary/Diagnostics }
> 
> using { /UnrealEngine.com/Temporary/SpatialMath }
> 
> move\_floor := class(creative\_device):
> 
> ```
> @editable Floor_Cube : creative_prop= creative_prop{}
> 
> @editable FBarrier: barrier_device= barrier_device{}
> 
> @editable BBarrier: barrier_device= barrier_device{}
> 
> @editable Teleporter : teleporter_device = teleporter_device{}
> 
> @editable
> 
> var MovingTime : float = 2.0
> 
> Gamestert()<suspends>:void=
> 
> Transform := Floor_Cube.GetTransform()
> 
> PositionX := Transform.Translation.X
> 
> PositionY := Transform.Translation.Y
> 
> PositionZ := Transform.Translation.Z
> 
> Rotation := Transform.Rotation
> 
> NowPosition := vector3{X := PositionX, Y:= PositionY, Z := PositionZ}
> 
> NewRotation := Rotation.ApplyYaw(0.0)
> 
> NewPosition := vector3{X := PositionX, Y:= PositionY+2200.0, Z := PositionZ}
> 
> Floor_Cube.MoveTo(NewPosition,NewRotation,MovingTime)
> 
> FBarrier.MoveTo(NewPosition,NewRotation,MovingTime)
> 
> BBarrier.MoveTo(NewPosition,NewRotation,MovingTime)
> 
> OnBegin<override>()<suspends>:void=
> 
> Teleporter.TeleportedEvent.Subscribe(Gamestert)
> 
> ```

---

<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:** [November 25, 2025, 6:10am UTC](https://forums.unrealengine.com/t/i-want-to-move-the-prop-when-i-teleport/2678439/2 "2025-11-25T06:10:50Z")

</div>

> [@studyingUEFN](#):
>
> `Gamestert()<suspends>:void=`

Swap this with `Gamestert(Agent:agent)<suspends>:void=`  
Let me know if that fixes it for you \<3

---

<div class="post-metadata">

**Author:** ![studyingUEFN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/studyinguefn/32/997250_2.png) [@studyingUEFN](https://forums.unrealengine.com/u/studyingUEFN)\
**Post date:** [December 15, 2025, 7:54am UTC](https://forums.unrealengine.com/t/i-want-to-move-the-prop-when-i-teleport/2678439/4 "2025-12-15T07:54:46Z")

</div>

> [@studyingUEFN](#):
>
> I’m terribly sorry for the delayed reply.
> 
> I tried the method you suggested, but it didn’t work and I got an error.
> 
> If you wouldn’t mind, could you please let me know?

> Error code:move\_floor.verse(30,46, 30,55) : Script error 3509: This function parameter expects a value of type agent-\>void, but this argument is an incompatible value of type type{\_(:agent):void}.

code:

> using { /Fortnite.com/Devices }
> 
> using { /Verse.org/Simulation }
> 
> using { /UnrealEngine.com/Temporary/Diagnostics }
> 
> using { /UnrealEngine.com/Temporary/SpatialMath }
> 
> move\_floor := class(creative\_device):
> 
> ```
> @editable Floor_Cube : creative_prop= creative_prop{}
> 
> @editable FBarrier: barrier_device= barrier_device{}
> 
> @editable BBarrier: barrier_device= barrier_device{}
> 
> @editable Teleporter : teleporter_device = teleporter_device{}
> 
> @editable
> 
> var MovingTime : float = 2.0
> 
> Gamestert(Agent:agent)<suspends>:void=
> 
> Transform := Floor_Cube.GetTransform()
> 
> PositionX := Transform.Translation.X
> 
> PositionY := Transform.Translation.Y
> 
> PositionZ := Transform.Translation.Z
> 
> Rotation := Transform.Rotation
> 
> NowPosition := vector3{X := PositionX, Y:= PositionY, Z := PositionZ}
> 
> NewRotation := Rotation.ApplyYaw(0.0)
> 
> NewPosition := vector3{X := PositionX, Y:= PositionY+2200.0, Z := PositionZ}
> 
> Floor_Cube.MoveTo(NewPosition,NewRotation,MovingTime)
> 
> FBarrier.MoveTo(NewPosition,NewRotation,MovingTime)
> 
> BBarrier.MoveTo(NewPosition,NewRotation,MovingTime)
> 
> OnBegin<override>()<suspends>:void=
> 
> Teleporter.TeleportedEvent.Subscribe(Gamestert)
> 
> ```

---

<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:** [December 15, 2025, 10:31am UTC](https://forums.unrealengine.com/t/i-want-to-move-the-prop-when-i-teleport/2678439/5 "2025-12-15T10:31:21Z")

</div>

```auto
using { /Fortnite.com/Devices }

using { /Verse.org/Simulation }

using { /UnrealEngine.com/Temporary/Diagnostics }

using { /UnrealEngine.com/Temporary/SpatialMath }

move_floor := class(creative_device):

    @editable Floor_Cube : creative_prop= creative_prop{}

    @editable FBarrier: barrier_device= barrier_device{}

    @editable BBarrier: barrier_device= barrier_device{}

    @editable Teleporter : teleporter_device = teleporter_device{}

    @editable

    var MovingTime : float = 2.0

    Gamestert(Agent:agent):void=
        spawn:
            GamestertSuspends(Agent)

    GamestertSuspends(Agent:agent)<suspends>:void=

        Transform := Floor_Cube.GetTransform()

        PositionX := Transform.Translation.X

        PositionY := Transform.Translation.Y

        PositionZ := Transform.Translation.Z

        Rotation := Transform.Rotation

        NowPosition := vector3{X := PositionX, Y:= PositionY, Z := PositionZ}

        NewRotation := Rotation.ApplyYaw(0.0)

        NewPosition := vector3{X := PositionX, Y:= PositionY+2200.0, Z := PositionZ}

        Floor_Cube.MoveTo(NewPosition,NewRotation,MovingTime)

        FBarrier.MoveTo(NewPosition,NewRotation,MovingTime)

        BBarrier.MoveTo(NewPosition,NewRotation,MovingTime)

    OnBegin<override>()<suspends>:void=

        Teleporter.TeleportedEvent.Subscribe(Gamestert)

```

Here you go, the issue was that your function was `<suspends>` which is not supported by the subscribe function, The change I did was convert Gamestert to a normal non suspends function that will then Call your `<suspends>` function which I renamed to `GamestertSuspends`

In my end this code does not have any verse errors and compiles let me know if this is not the case for you. \<3

---

<div class="post-metadata">

**Author:** ![studyingUEFN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/studyinguefn/32/997250_2.png) [@studyingUEFN](https://forums.unrealengine.com/u/studyingUEFN)\
**Post date:** [December 16, 2025, 3:14am UTC](https://forums.unrealengine.com/t/i-want-to-move-the-prop-when-i-teleport/2678439/6 "2025-12-16T03:14:53Z")

</div>

It worked without any errors.

Thank you very much.

---

<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:** [December 17, 2025, 2:41pm UTC](https://forums.unrealengine.com/t/i-want-to-move-the-prop-when-i-teleport/2678439/7 "2025-12-17T14:41:37Z")

</div>

Nice 👍
