# Timer with remote signal device

**URL:** <https://forums.unrealengine.com/t/timer-with-remote-signal-device/1250438>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [August 4, 2023, 9:16am UTC](https://forums.unrealengine.com/t/timer-with-remote-signal-device/1250438 "2023-08-04T09:16:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeozerLz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LeozerLz](https://forums.unrealengine.com/u/LeozerLz)\
**Post date:** [August 4, 2023, 9:16am UTC](https://forums.unrealengine.com/t/timer-with-remote-signal-device/1250438/1 "2023-08-04T09:16:19Z")

</div>

Hello guys so I try to make a custom signal remote where if i click the remote then a timer will run here is my code

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

team1\_class\_healer := class(creative\_device):

```
var seconds : int = 1
var iteration : int = 1
var isRunning : logic = false

@editable
SignalRemoteGreen : signal_remote_manager_device = signal_remote_manager_device{}

HandlePrimaryButton( P : agent) : void = 
    if (F := P.GetFortCharacter[]) : 
        set isRunning = true
        F.Hide()

HandelSecondaryButton( P : agent) : void = 
    if (F := P.GetFortCharacter[]) : 
        set isRunning = false
        F.Show()

# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
    # TODO: Replace this with your code
    SignalRemoteGreen.PrimarySignalEvent.Subscribe(HandlePrimaryButton)
    Print("{iteration}")
        if(isRunning = true):
            for (X := 0..100):
                set iteration += seconds
                Sleep(1.0)
                Print("{iteration}")

```

i dont know why but even thogh i havent click the remote the timer always counting at the start of the game please help ☹
