# This is a simple Verse example. # It shows how a device talks to a prop mover. # prop_mover_device is the real Verse type for the Prop Mover device. # Wire your prop_mover_device in the UEFN editor by setting its # "Managed Component" property to point at your Bouncer prop. using { /Fortnite.com/Devices } using { /Verse.org/Simulation } using { /UnrealEngine.com/Temporary/Diagnostics } # Declare our class so it can hold a reference to the Prop Mover device. bouncer_controller := class(creative_device): # Drag the Prop Mover device from the Outliner into this slot # in the UEFN details panel. This wires the device to the script. @editable MyMover : prop_mover_device = prop_mover_device{} # OnBegin runs automatically when the game session starts. OnBegin() : void = # Tell the Prop Mover to start moving its linked prop. # This is the real API call that activates the device. MyMover.Enable()