# This is a simple script to label our spawn pads.
# It references player_spawner_device instances already placed in the UEFN
# scene and wired to this script via @editable properties.
# You do not create spawn pads in Verse; you place them in the editor.
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
spawn_label_manager := class(creative_device):
# Drag your Blue-team Player Spawn Pad onto this property in the editor.
@editable
SpawnPadBlue : player_spawner_device = player_spawner_device{}
# Drag your Red-team Player Spawn Pad onto this property in the editor.
@editable
SpawnPadRed : player_spawner_device = player_spawner_device{}
OnBegin<override>()<suspends> : void =
# Team assignment and visibility are configured in the Customize
# panel for each player_spawner_device, not through Verse API calls.
# This block simply logs that both pads are registered and ready.
Print("Blue team spawn pad is registered for Team 1.") # note: player_spawner_device has no Set_Player_Team method; use the Customize panel
Print("Red team spawn pad is registered for Team 2.") # note: player_spawner_device has no Set_Visible method; use Visible in Game in the Customize panel
Verse Library
verse
01 Device
Registers and logs Blue and Red team spawn pads when the game begins.
verse-library/setting-up-the-player-spawner/01-device.verse