# GuardLeash.verse
# This device defines a leash volume for guards.
using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /Verse.org/SpatialMath }
# We create a new class called 'LeashDevice'.
# Think of this as a new type of device you can place in the editor.
LeashDevice := class(creative_device):
# @editable means this variable shows up in the editor sidebar.
# You can change it without touching code.
# 1. The Inner Radius (Home Base)
# Guards should stay inside this distance from the spawn center.
@editable
InnerRadius:float = 500.0
# 2. The Outer Radius (The Leash Limit)
# Guards cannot go further than this distance.
@editable
OuterRadius:float = 1000.0
# 3. The List of Spawners
# This is an 'Array'. It's a list where you drag in your Guard Spawner devices.
# We leave it empty for now; you'll fill it in the editor.
@editable
ConnectedSpawners:[]npc_spawner_device = array{}
Verse Library
verse
01 Device
Manages NPC spawners and enforces inner and outer radius limits for guard positioning.
verse-library/defines-a-leash-volume-that-can-be-assigned-to-guards/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.