Verse Library verse

01 Standalone

Automatically hides the prop ping cooldown indicator on screen after a five-second timer finishes its countdown.

verse-library/setshowproppingcooldown/01-standalone.verse

using { /Fortnite.com/Devices }
using { /VerseOrg.Core }

# This is our main script. Think of it as the "Game Rule" that runs everything.
HidePingCooldownsScript := class(VerseWorld):

    # 1. Define the devices we need.
    # PropManager: The boss device that handles all prop logic.
    # CooldownTimer: A simple timer that counts down.
    PropManager:PropOmaticManagerDevice = PropOmaticManagerDevice{}
    CooldownTimer:TimerDevice = TimerDevice{}

    # 2. The Setup function. This runs once when the game starts.
    Setup := function():
        # Tell the timer to start counting down for 5 seconds.
        # In Verse, we call .Start() on the timer.
        CooldownTimer.Start(5.0)

        # Connect the timer's "Finished" event to our HidePing function.
        # When the timer hits zero, it will trigger HidePing.
        CooldownTimer.Finished += HidePing

    # 3. The HidePing function. This runs when the timer finishes.
    HidePing := function():
        # Here is the magic line!
        # We call SetShowPropPingCooldown on the PropManager.
        # We pass 'false' as the argument.
        # 'false' means "Turn OFF the display."
        PropManager.SetShowPropPingCooldown(false)

Sign in free to read the full source 🌴

This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.

Sign in with Discord

Comments

    Sign in to vote, comment, or suggest an edit. Sign in