# Can you attach a script to a Fortnite device?

**URL:** <https://forums.unrealengine.com/t/can-you-attach-a-script-to-a-fortnite-device/948568>\
**Category:** Programming & Scripting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [April 14, 2023, 8:35am UTC](https://forums.unrealengine.com/t/can-you-attach-a-script-to-a-fortnite-device/948568 "2023-04-14T08:35:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeanOfEarth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SeanOfEarth](https://forums.unrealengine.com/u/SeanOfEarth)\
**Post date:** [April 14, 2023, 8:35am UTC](https://forums.unrealengine.com/t/can-you-attach-a-script-to-a-fortnite-device/948568/1 "2023-04-14T08:35:27Z")

</div>

ie, can you extend a fortnite device, or include a fortnite device in your own Verse script such that you can copy that device around your level?

More specifically (as a first step) I’m trying to add an `@editable` variable to a device. For example, giving an item spawner a reference to a capture area

---

<div class="post-metadata">

**Author:** ![spentak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spentak/32/642372_2.png) [@spentak](https://forums.unrealengine.com/u/spentak)\
**Post date:** [April 14, 2023, 3:27pm UTC](https://forums.unrealengine.com/t/can-you-attach-a-script-to-a-fortnite-device/948568/2 "2023-04-14T15:27:06Z")

</div>

You cannot “subclass” existing official Devices, but you can create your own `creative_device` and then reference official devices with `@editable` attribute.

You can even attach an official device to a prop in UEFN editor, then reference your prop in code, then move that prop around, thus moving the device.
