# This is our main script file.
# It controls the magic fish bowl.
using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
# This is our device class.
# It holds the fish and moves it.
magic_fish_bowl := class(creative_device):
# This is our Prop Mover device.
# Connect it in the editor by selecting your PropMoverDevice.
@editable
MyPropMover : prop_mover_device = prop_mover_device{}
# This is our Item Granter device.
# It gives the fish item to the player.
# Note: item_granter_device is the real API for handing items to players.
@editable
MyItemGranter : item_granter_device = item_granter_device{}
# This is our Button device.
# The player clicks it to get a fish.
@editable
MyButton : button_device = button_device{}
# This function runs when the game starts.
OnBegin<override>()<suspends> : void =
Verse Library
verse
01 Device
Grants a power-up item to players when they click a connected Creative button device.
verse-library/using-fish-items-in-fortnite-creative/01-device.verse
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.