# 1. IMPORTS
# Think of this like opening your backpack.
# We need access to the basic Fortnite tools.
using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
using { /Fortnite.com/Game }
using { /Verse.org/Simulation }
using { /Verse.org/SpatialMath }
using { /UnrealEngine.com/Temporary/Diagnostics }
# 2. THE BLUEPRINT (CLASS)
# This defines what our custom device IS.
# It inherits from creative_device, which means
# "I am a thing that can be placed in the world."
RevengeTrap := class(creative_device):
# 3. CONFIGURABLE STATS
# These are like the stats on a weapon you can tweak.
# DamageAmount: How much hurt?
# LaunchForce: How hard do they fly?
@editable
DamageAmount<public>: float = 10.0
@editable
LaunchForce<public>: float = 2000.0
# We wire a trigger_device in the UEFN editor so the device
# can detect when a player steps on it.
# Select this device in the Properties panel and point it
# at a Trigger you have placed on the floor.
Verse Library
verse
01 Device
Defines a reusable Verse class for a custom creative device with editable properties.
verse-library/from-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.