# \[SW\] When using Spawn() or SpawnAt() - NPC Spawner doesn't apply the alternate versions

**URL:** <https://forums.unrealengine.com/t/sw-when-using-spawn-or-spawnat-npc-spawner-doesnt-apply-the-alternate-versions/2715313>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fixed, fortnite\
**Created:** [April 14, 2026, 6:22pm UTC](https://forums.unrealengine.com/t/sw-when-using-spawn-or-spawnat-npc-spawner-doesnt-apply-the-alternate-versions/2715313 "2026-04-14T18:22:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![EsmeeSays](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/esmeesays/32/564150_2.png) [@EsmeeSays](https://forums.unrealengine.com/u/EsmeeSays)\
**Post date:** [April 14, 2026, 6:23pm UTC](https://forums.unrealengine.com/t/sw-when-using-spawn-or-spawnat-npc-spawner-doesnt-apply-the-alternate-versions/2715313/2 "2026-04-14T18:23:13Z")

</div>

Repo verse code:

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

See 
 for how to create a verse device.

A Verse-authored creative device that can be placed in a level

debug_npc_spawner_device_manager := class(creative_device):@editable NPCSpawnerDevice : npc_spawner_device = npc_spawner_device{}

@editable SpawnAtLocationButtonDevice : button_device = button_device{}

@editable SpawnAtSpawnerButtonDevice : button_device = button_device{}

# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
    sync:
        loop:
            InteractAgent := SpawnAtLocationButtonDevice.InteractedWithEvent.Await()
            Print("Spawning NPC at location")
            Location := GetTransform().Translation.ToLUF()
            Rotation := GetTransform().Rotation.ToLUF()
            NPCSpawnerDevice.SpawnAt(Location, ?Rotation := option {Rotation})
            
        loop:
            InteractAgent := SpawnAtSpawnerButtonDevice.InteractedWithEvent.Await()
            Print("Spawning NPC at spawner")
            NPCSpawnerDevice.Spawn()

sw_scene_graph_utils — conversion helpers between Verse.org SpatialMath (LUF) and

UnrealEngine.com/Temporary/SpatialMath (XYZ) types.

Entity/SceneGraph APIs (GetGlobalTransform / SetGlobalTransform) use Verse.org

SpatialMath. All arithmetic (ring offsets, TeleportTo, FortChar.GetTransform)

uses UnrealEngine SpatialMath. These extension methods bridge between the two.

Usage example:

Center := LobbyEntity.GetGlobalTransform().FromLUF().Translation # xyz_vec3

── Type aliases ──────────────────────────────────────────────────────────────

luf_vec3 := (/Verse.org/SpatialMath:)vector3xyz_vec3 := (/UnrealEngine.com/Temporary/SpatialMath:)vector3

luf_rot := (/Verse.org/SpatialMath:)rotationxyz_rot := (/UnrealEngine.com/Temporary/SpatialMath:)rotation

luf_xform := (/Verse.org/SpatialMath:)transformxyz_xform := (/UnrealEngine.com/Temporary/SpatialMath:)transform

── vector3 conversions ───────────────────────────────────────────────────────

(Pos : xyz_vec3).ToLUF() : luf_vec3 =FromVector3 of Pos

(Pos : luf_vec3).FromLUF() : xyz_vec3 =FromVector3 of Pos

── rotation conversions ──────────────────────────────────────────────────────

(Rot : xyz_rot).ToLUF() : luf_rot =FromRotation of Rot

(Rot : luf_rot).FromLUF() : xyz_rot =FromRotation of Rot

── transform conversions ─────────────────────────────────────────────────────

(Xform : xyz_xform).ToLUF() : luf_xform =FromTransform of Xform

(Xform : luf_xform).FromLUF() : xyz_xform =FromTransform of Xform

── Convenience: get an entity’s world position as an xyz_vec3 (UnrealEngine)

so callers don’t need to import both SpatialMath modules. ───────────────────

GetEntityWorldXYZ(E : entity) : xyz_vec3 =E.GetGlobalTransform().FromLUF().Translation

```

---

_[View the full topic](https://forums.unrealengine.com/t/sw-when-using-spawn-or-spawnat-npc-spawner-doesnt-apply-the-alternate-versions/2715313)._
