# I'm trying to teleport the advanced\_storm\_controller\_device to one of the positions in my array, but I can't use the TeleportTo function 

**URL:** <https://forums.unrealengine.com/t/im-trying-to-teleport-the-advanced-storm-controller-device-to-one-of-the-positions-in-my-array-but-i-cant-use-the-teleportto-function/2695343>\
**Category:** Programming & Scripting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [January 27, 2026, 8:47pm UTC](https://forums.unrealengine.com/t/im-trying-to-teleport-the-advanced-storm-controller-device-to-one-of-the-positions-in-my-array-but-i-cant-use-the-teleportto-function/2695343 "2026-01-27T20:47:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Astr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Astr](https://forums.unrealengine.com/u/Astr)\
**Post date:** [January 27, 2026, 8:47pm UTC](https://forums.unrealengine.com/t/im-trying-to-teleport-the-advanced-storm-controller-device-to-one-of-the-positions-in-my-array-but-i-cant-use-the-teleportto-function/2695343/1 "2026-01-27T20:47:03Z")

</div>

```verse
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /Verse.org/SpatialMath }

RandomSpawnDevice := class(creative_device):

    @editable
    DeviceStormController : advanced_storm_controller_device = advanced_storm_controller_device{}
    @editable
    Trigger : trigger_device = trigger_device{}

    TeleportDevice(MaybeAgent:?agent):void =
        var SpawnPoints : []vector3 = array{
            vector3{ Forward := 5340.000000, Left := -2000.000000, Up := 400.000000 },
            vector3{ Forward := 5000.000000, Left := -5000.000000, Up := 400.000000 }
        }
        DeviceStormController.TeleportTo(SpawnPoints[0], DeviceStormController.GetTransform().Rotation)

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

```

What I want to do is move the advanced\_storm\_controller\_device to a random position in my array at the start of the game, but I can’t use the TeleportTo function

On line 18 (where I use the function it gives me the errors: No overload of the function `TeleportTo` matches the provided arguments (:vector3,:rotation). Could be any of:  
function (/Fortnite.com/Devices/storm\_controller\_device:)TeleportTo(:vector3,:rotation) in package Fortnite  
function (/Fortnite.com/Devices/storm\_controller\_device:)TeleportTo(:transform) in package Fortnite(3509)

(Also tried with extension function arguments (:advanced\_storm\_controller\_device,:tuple(vector3,rotation)))(3509)

---

<div class="post-metadata">

**Author:** ![BRGJuanCruzMK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brgjuancruzmk/32/1036548_2.png) [@BRGJuanCruzMK](https://forums.unrealengine.com/u/BRGJuanCruzMK)\
**Post date:** [February 2, 2026, 6:18pm UTC](https://forums.unrealengine.com/t/im-trying-to-teleport-the-advanced-storm-controller-device-to-one-of-the-positions-in-my-array-but-i-cant-use-the-teleportto-function/2695343/2 "2026-02-02T18:18:39Z")

</div>

Hey @Astr how are you?

Right now, UEFN has two different types of Vector3, one of them comes from Unreal Engine, and the other one from Verse.

In your code, you are using a LUF type of Vector3 (Left, Up, Forward), but “TeleportTo” needs an XYZ type of Vector3 (X, Y, Z). So, to make it work, you need to convert that LUF to XYZ.

In addition to that, “TeleportTo” function needs all the parameter to work (Location, Rotation, and Scale. In your code you are not providing the new Scale to the TeleportTo.

How you solve that?

1. Add `using { /UnrealEngine.com/Temporary/SpatialMath}` to your code. This will highlight some “ambiguity” errors, but don’t worry! We are fixing that in a few moments.

2. Add the following function (this will allow you to transform a LUF to XYZ):

```auto
    ConvertToXYZ(LUF : (/Verse.org/SpatialMath:)vector3) : (/UnrealEngine.com/Temporary/SpatialMath:)vector3 =
        return (/UnrealEngine.com/Temporary/SpatialMath:)vector3{
            X := LUF.Forward,
            Y := LUF.Left,
            Z := LUF.Up
        }
```

As you can see, here we can get a LUF Vector3 and convert it manually to XYZ Vector3, declaring their types explicitly.

1. In the same way you created the previous function, you need to declare the type of your LUF Vector3 array, like this:

```auto
    TeleportDevice(MaybeAgent:?agent):void =
        var SpawnPoints : [](/Verse.org/SpatialMath:)vector3 = array{
            (/Verse.org/SpatialMath:)vector3{ Left := 5340.000000, Up := -2000.000000, Forward := 400.000000 },
            (/Verse.org/SpatialMath:)vector3{ Left := 5000.000000, Up := -5000.000000, Forward := 400.000000 }
        }
```

1. Then you need to get that LUF Vector3 (which represents “Location”) and transform it to XYZ Vector3, and use “NewTransform” (with Location, Rotation, and Scale) to teleport the device:

```auto
CurrentTransform := DeviceStormController.GetTransform()
        if(NewTranslation := SpawnPoints[0]):
            FinalTranslation := ConvertToXYZ(NewTranslation)
            NewTransform := (/UnrealEngine.com/Temporary/SpatialMath:)transform{
                Translation := FinalTranslation,
                Rotation := CurrentTransform.Rotation,
                Scale := CurrentTransform.Scale
            }

            if(DeviceStormController.TeleportTo[NewTransform]):
```

The full teleport function should look like this:

```auto
    TeleportDevice(MaybeAgent:?agent):void =
        var SpawnPoints : [](/Verse.org/SpatialMath:)vector3 = array{
            (/Verse.org/SpatialMath:)vector3{ Left := 5340.000000, Up := -2000.000000, Forward := 400.000000 },
            (/Verse.org/SpatialMath:)vector3{ Left := 5000.000000, Up := -5000.000000, Forward := 400.000000 }
        }

        CurrentTransform := DeviceStormController.GetTransform()
        if(NewTranslation := SpawnPoints[0]):
            FinalTranslation := ConvertToXYZ(NewTranslation)
            NewTransform := (/UnrealEngine.com/Temporary/SpatialMath:)transform{
                Translation := FinalTranslation,
                Rotation := CurrentTransform.Rotation,
                Scale := CurrentTransform.Scale
            }

            if(DeviceStormController.TeleportTo[NewTransform]):
```

And that’s it! Now you have your teleport working!

Let me know if you need more help!

---

<div class="post-metadata">

**Author:** ![FragileNucleusGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fragilenucleusgames/32/1103901_2.png) [@FragileNucleusGames](https://forums.unrealengine.com/u/FragileNucleusGames)\
**Post date:** [February 3, 2026, 12:12pm UTC](https://forums.unrealengine.com/t/im-trying-to-teleport-the-advanced-storm-controller-device-to-one-of-the-positions-in-my-array-but-i-cant-use-the-teleportto-function/2695343/3 "2026-02-03T12:12:28Z")

</div>

As far as I know, there is no need to create custom conversion functions. We already have two `FromVector3` functions that convert between the two `vector3` types.

> **[Verse API reference page for the FromVector3 function | Fortnite Documentation...](https://dev.epicgames.com/documentation/en-us/fortnite/verse-api/unrealenginedotcom/temporary/spatialmath/fromvector3)**
>
> Learn technical details about the API for the FromVector3 function in Verse.

> **[Verse API reference page for the FromVector3 function | Fortnite Documentation...](https://dev.epicgames.com/documentation/en-us/fortnite/verse-api/unrealenginedotcom/temporary/spatialmath/fromvector3-1)**
>
> Learn technical details about the API for the FromVector3 function in Verse.

Similarity, we have two `FromRotation`, `FromScalarVector3`, and `FromTransform` functions.
