# Is there a way to disable a device without making a custom function?

**URL:** <https://forums.unrealengine.com/t/is-there-a-way-to-disable-a-device-without-making-a-custom-function/2708059>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [March 22, 2026, 8:13am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-disable-a-device-without-making-a-custom-function/2708059 "2026-03-22T08:13:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikufromgatlin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mikufromgatlin/32/1061332_2.png) [@mikufromgatlin](https://forums.unrealengine.com/u/mikufromgatlin)\
**Post date:** [March 22, 2026, 8:13am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-disable-a-device-without-making-a-custom-function/2708059/1 "2026-03-22T08:13:25Z")

</div>

I have two devices. One runs my game’s casual logic, the other runs the ranked logic. I only want one to be enabled at each time.

I have a third device that I want to use to disable one and switch on the other. Is there any default built-in way to fully disable a device and disconnect its events/loops/etc.? Effectively reverting it back to a “pre-enable on start” state.

As far as I can find, the only way is via making a custom `Disable()` and doing all of the above manually, but doing that feels unnecessarily complex - surely there must be a better way?

---

<div class="post-metadata">

**Author:** ![mikufromgatlin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mikufromgatlin/32/1061332_2.png) [@mikufromgatlin](https://forums.unrealengine.com/u/mikufromgatlin)\
**Post date:** [March 22, 2026, 7:01pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-disable-a-device-without-making-a-custom-function/2708059/2 "2026-03-22T19:01:25Z")

</div>

Being able to clone/duplicate a device with its references intact could also work for this, but this doesn’t appear to be possible either. 😭

---

<div class="post-metadata">

**Author:** ![mikufromgatlin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mikufromgatlin/32/1061332_2.png) [@mikufromgatlin](https://forums.unrealengine.com/u/mikufromgatlin)\
**Post date:** [March 23, 2026, 5:15pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-disable-a-device-without-making-a-custom-function/2708059/3 "2026-03-23T17:15:39Z")

</div>

My mind now went to “maybe I can have a few duplicates made in advance and destroy the old ones as-needed”; however, destroying a custom device without a custom function is also not possible. _sigh_

---

<div class="post-metadata">

**Author:** ![mikufromgatlin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mikufromgatlin/32/1061332_2.png) [@mikufromgatlin](https://forums.unrealengine.com/u/mikufromgatlin)\
**Post date:** [March 23, 2026, 11:10pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-disable-a-device-without-making-a-custom-function/2708059/4 "2026-03-23T23:10:06Z")

</div>

I was able to accomplish the original goal, after much trial and error, via leveraging coroutines.

Related code snippet to make coroutines easier to work with:  
[https://dev.epicgames.com/community/snippets/4dl/fortnite-cancelable-spawned-coroutines](https://dev.epicgames.com/community/snippets/4dl/fortnite-cancelable-spawned-coroutines)

Code Excerpt (in case it helps future peoples):

```verse
GamemodeManager := class(creative_device):
 
    # Instances
    @editable CasualLogic : CasualLogicManager = CasualLogicManager{}
    @editable RankedLogic : RankedLogicManager = RankedLogicManager{}
    
    # Variables
    var IsCasualMode : logic = true
    var CurrentRoutine : ?routine = false

    # Functions
    RunCurrentMode():void=
        # Cancel any currently-ongoing routines
        if(CurrentRoutineTemp := CurrentRoutine?):
            Print("Cancelled current mode")
            CurrentRoutineTemp.Cancel()
            # add additional cleanup logic here
   
        # Start either casual or ranked mode
        if(IsCasualMode = true):
            Print("Starting casual mode")
            CurrentRoutineTemp := SpawnRoutine(CasualLogic.StartGame)
            set CurrentRoutine = option{CurrentRoutineTemp}
        else:
            Print("Starting ranked mode")
            CurrentRoutineTemp := SpawnRoutine(RankedLogic.StartGame)
            set CurrentRoutine = option{CurrentRoutineTemp}

```

All I had to do to my original devices was change the `OnBegin` to be a custom method `StartGame`. Much cleaner than having to splice them up.
