Verse Library verse

01 Device

Declares a custom event type that carries an agent payload for game state broadcasting.

verse-library/verse-events-custom/01-device.verse

using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }

boss_arena := class(creative_device):

    # Our own event. It carries an agent — the player who won.
    BossDefeatedEvent : event(agent) = event(agent){}

Comments

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