# Subscribe isn't working

**URL:** <https://forums.unrealengine.com/t/subscribe-isnt-working/1291991>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [September 12, 2023, 7:09am UTC](https://forums.unrealengine.com/t/subscribe-isnt-working/1291991 "2023-09-12T07:09:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cooljs20002](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cooljs20002](https://forums.unrealengine.com/u/Cooljs20002)\
**Post date:** [September 12, 2023, 7:09am UTC](https://forums.unrealengine.com/t/subscribe-isnt-working/1291991/1 "2023-09-12T07:09:35Z")

</div>

using { /Fortnite.com/Devices }  
using { /Verse.org/Simulation }  
using { /UnrealEngine.com/Temporary/Diagnostics }  
using { /Fortnite.com/Characters }

# See [Create Your Own Device Using Verse in Unreal Editor for Fortnite | Fortnite Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/uefn/create-your-own-device-in-verse) for how to create a verse device.

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

Invisibility\_device := class(creative\_device):

```
@editable
TriggerDevice : item_granter_device = item_granter_device{}

@editable
ToggleDelay : float = 15.0

ItemGrantedEvent(P : agent) : void =
    spawn:
        Invisibility(P)

Invisibility(P : agent)<suspends> : void =
    if (F := P.GetFortCharacter[]):
        F.Hide
    Sleep(ToggleDelay)
    if (f := P.GetFortCharacter[]):
        f.Show

# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
    TriggerDevice.ItemGrantedEvent.Subscribe

```

---

<div class="post-metadata">

**Author:** ![SeedohFN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/seedohfn/32/720959_2.png) [@SeedohFN](https://forums.unrealengine.com/u/SeedohFN)\
**Post date:** [September 12, 2023, 7:21am UTC](https://forums.unrealengine.com/t/subscribe-isnt-working/1291991/2 "2023-09-12T07:21:53Z")

</div>

You must write it this way:

> TriggerDevice.ItemGrantedEvent.Subscribe(ItemGrantedEvent)

---

<div class="post-metadata">

**Author:** ![Cooljs20002](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cooljs20002](https://forums.unrealengine.com/u/Cooljs20002)\
**Post date:** [September 13, 2023, 1:54am UTC](https://forums.unrealengine.com/t/subscribe-isnt-working/1291991/3 "2023-09-13T01:54:47Z")

</div>

Thank you
