# How to setup a function to be available in user options functions list ?

**URL:** <https://forums.unrealengine.com/t/how-to-setup-a-function-to-be-available-in-user-options-functions-list/1905867>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [June 17, 2024, 4:31am UTC](https://forums.unrealengine.com/t/how-to-setup-a-function-to-be-available-in-user-options-functions-list/1905867 "2024-06-17T04:31:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AZOM-Games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/azom-games/32/997248_2.png) [@AZOM-Games](https://forums.unrealengine.com/u/AZOM-Games)\
**Post date:** [June 17, 2024, 4:31am UTC](https://forums.unrealengine.com/t/how-to-setup-a-function-to-be-available-in-user-options-functions-list/1905867/1 "2024-06-17T04:31:00Z")

</div>

How to setup a function to be available in user options functions list ?

Here :  
 ![uefn_no_function](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/4/e6456929e4606f71655d43a40b6a99b7dcbfede2.jpeg)

---

<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:** [June 17, 2024, 4:32am UTC](https://forums.unrealengine.com/t/how-to-setup-a-function-to-be-available-in-user-options-functions-list/1905867/2 "2024-06-17T04:32:57Z")

</div>

Unfortunately you can’t can add devices as @editables and then have the code use the interacted/triggered/etc events to trigger a function inside verse code

---

<div class="post-metadata">

**Author:** ![AZOM-Games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/azom-games/32/997248_2.png) [@AZOM-Games](https://forums.unrealengine.com/u/AZOM-Games)\
**Post date:** [June 17, 2024, 4:38am UTC](https://forums.unrealengine.com/t/how-to-setup-a-function-to-be-available-in-user-options-functions-list/1905867/3 "2024-06-17T04:38:34Z")

</div>

Yes, like this : [https://www.youtube.com/watch?v=aGB13HO\_O44](https://www.youtube.com/watch?v=aGB13HO_O44)

---

<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:** [June 17, 2024, 4:44am UTC](https://forums.unrealengine.com/t/how-to-setup-a-function-to-be-available-in-user-options-functions-list/1905867/4 "2024-06-17T04:44:26Z")

</div>

Yes exactly like that, thats how Verse interacts with devices (Along with gameplay tags)

---

<div class="post-metadata">

**Author:** ![AZOM-Games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/azom-games/32/997248_2.png) [@AZOM-Games](https://forums.unrealengine.com/u/AZOM-Games)\
**Post date:** [June 17, 2024, 4:57am UTC](https://forums.unrealengine.com/t/how-to-setup-a-function-to-be-available-in-user-options-functions-list/1905867/5 "2024-06-17T04:57:08Z")

</div>

The UI way allows multiples entries while the verse version require one line by entry and a fixed count.

---

<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:** [June 17, 2024, 5:15am UTC](https://forums.unrealengine.com/t/how-to-setup-a-function-to-be-available-in-user-options-functions-list/1905867/6 "2024-06-17T05:15:37Z")

</div>

You can create an array for devices eg.

```auto
@editable MyTriggers : []trigger_device = array{}

```

and then to do stuff on all of them use for like this

```auto
for(Trigger:MyTriggers):
      Trigger.Enable()

```

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 17, 2024, 5:15am UTC](https://forums.unrealengine.com/t/how-to-setup-a-function-to-be-available-in-user-options-functions-list/1905867/7 "2024-07-17T05:15:55Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
