Verse Library verse

03 Device

Prevents a creative item spawner from activating immediately when the island initializes.

verse-library/verse-devices-reading-and-using/03-device.verse

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

shop_controller := class(creative_device):

    @editable
    LootSpawner : item_spawner_device = item_spawner_device{}

    OnBegin<override>()<suspends> : void =
        # Start the spawner switched OFF, so nothing drops yet.
        LootSpawner.Disable()

Comments

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