Devices

module
Devices<public> := module
Module
/Fortnite.com/Devices
Source
fortnite

Used in

using { /Fortnite.com/Devices }
using { /UnrealEngine.com/Temporary/UI }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /Verse.org/Simulation }
using { /Fortnite.com/UI }

# This is our main device class. It inherits from creative_device
using { /Fortnite.com/AI }
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }

# This is our "Manager" device. It lives in the scene graph.
# Think of it as the stage manager holding the clipboard.
PatrolManager := class(creative_device):
# We need to import the basic frameworks for Verse and World simulation
using { /Fortnite.com/Devices }
using { /UnrealEngine.com/Temporary/SpatialMath }

# This is our main device script. 
# It "listens" for events from the Trigger Volume.
script class StormTriggerDevice extends Device:
using { /Fortnite.com/Animation/PlayAnimation }
using { /Fortnite.com/Devices }
using { /Verse.org/Assets }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }

# PLAY AN ANIMATION ON A PLAYER'S CHARACTER — directly, from Verse.
#
using { /Fortnite.com/Devices }

# This is our main "Controller" device. 
# It will sit in the world and listen for class selections.
class ClassPickerController < creative_object:
    # We need a reference to the UI device we placed in the editor
    # Think of this as plugging a microphone into a speaker.
# It runs on the server, so every player sees the same result.

using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }

# 1. Define the "Container" for our script.
# This is like a container in Fortnite Creative that holds your devices.
SideScrollerArena := class(creative_device):
    # 2. Define the Devices we will use.
# This is the main script for our Surprise Spinner
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /Verse.org/Random }

# This is the main class for our device
surprise_spinner := class(creative_device):
    # These are the items we can give away
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }

# This is our custom device. It holds the button and door.
# Think of it as a box containing both parts.
MySecretDoor := class(creative_device):
# 1. IMPORTS
# We need to import the 'Devices' library to access Button,
# Prop-Mover, and their built-in events.
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }

# 2. THE SCRIPT STRUCTURE
# This is the container for our logic.
using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
using { /Fortnite.com/Game }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }

# We define our own "Flopper Dispenser" device.