using { /Fortnite.com/Devices }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /Verse.org/Simulation }
# This is our main script. It runs when the device is placed.
create_arena_device := class(creative_device):
# 1. DEFINE THE ARENA SIZE
# Think of this like setting the "Win Condition" or "Match Settings"
# We use named constants because these numbers won't change during the game.
# Distances are in centimetres in Unreal Engine (2000.0 = 20 metres).
Arena_Width : float = 2000.0
Arena_Depth : float = 2000.0
Arena_WallHeight : float = 500.0 # How tall each wall panel is
Arena_Thickness : float = 50.0 # How thick the walls are
# Reference to a barrier device that must be placed and wired in the editor.
# Duplicate it in UEFN for each of the four walls and assign each below.
# note: Verse cannot spawn barrier_device instances at runtime; they must
# be pre-placed in the editor and referenced here as editable properties.
@editable
Front_Barrier : barrier_device = barrier_device{}
@editable
Back_Barrier : barrier_device = barrier_device{}
@editable
Left_Barrier : barrier_device = barrier_device{}
@editable
Verse Library
verse
01 Device
Defines a creative device class with editable barrier references and arena dimensions to create custom boundary walls.
verse-library/using-barrier-devices-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.