# How do could I get a reference to the vehicle device from the spawned prop?

**URL:** <https://forums.unrealengine.com/t/how-do-could-i-get-a-reference-to-the-vehicle-device-from-the-spawned-prop/2337766>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [February 16, 2025, 11:46pm UTC](https://forums.unrealengine.com/t/how-do-could-i-get-a-reference-to-the-vehicle-device-from-the-spawned-prop/2337766 "2025-02-16T23:46:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr\_Awere](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mr_awere/32/1029585_2.png) [@Mr\_Awere](https://forums.unrealengine.com/u/Mr_Awere)\
**Post date:** [February 16, 2025, 11:46pm UTC](https://forums.unrealengine.com/t/how-do-could-i-get-a-reference-to-the-vehicle-device-from-the-spawned-prop/2337766/1 "2025-02-16T23:46:04Z")

</div>

I have the following algorithm that spawns the Sports Car device (following the guide on dynamically spawning devices).

This works but has it’s issues. For instance, I have set the device to not be visible in game, however, it insteads shows a holographic mesh representing the base of the device, which somehow prevents the player from entering the vehicle. I tried clearing the mesh of the spawn pad but this was not possible apparently:

 ![car_spawned](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/f/13f6865252b649410bd5587bab13fffb8ccd6aea.jpeg)

I also can’t figure out a way to get a reference to the spawned device. I tried casting the spawned prop to the sports car device, however, this did not work:

```auto
if(VehicleDevice := vehicle_spawner_sports_car_device[SpawnedProp]) {}

```

I can get a reference to the vehicle device using a for-loop with the method FindCreativeObjectsWithTag(vehicle\_spawner\_tag{}) (like in the guide), but this is unconvinient since I am going through every vehicle that the player would spawn, when really I only need the one that player just spawned. Here is the code I made:

```auto
OnSpawnVehicleTriggerPressed<private>(Agent:agent):void=
        if(FortCharacter:=Agent.GetFortCharacter[]):
            PlayerTranslation:=FortCharacter.GetTransform().Translation
            PlayerRotation:=FortCharacter.GetTransform().Rotation
            if(Prop:=SpawnProp(Vehicle_Spawner_Sports_Car_Prop, PlayerTranslation, PlayerRotation)(0)?, CreativeObject:=creative_object[Prop]):
                for (Obj : FindCreativeObjectsWithTag(vehicle_spawner_tag{})):
                    if (VehicleSpawner := vehicle_spawner_sports_car_device[Obj]):
                        VehicleSpawner.Enable()

```

I would really appriciate it if someone could give me a hand on this issue. Thanks in advanced.
