Verse Library verse

01 Fragment

Calculates positions and spawns wall props to automatically generate enclosed battle arenas and selectors.

verse-library/building-arenas-in-fortnite-creative/01-fragment.verse

# Arena Architect Script
# This script builds a simple enclosed arena with a central zone.

using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com temporary/Temporary }

# This is our main class. Think of it as the "Brain" of our arena.
class ArenaBuilder is WorldActor()
    # A variable to store the size of our arena.
    # Like setting the "Map Size" in Creative settings, but we control it here.
    ArenaSize: int = 5

    # This function is called when the game starts.
    # It’s like pressing "Play" on your controller.
    OnBegin<override>()<suspends>:
        # Call our custom function to build the walls
        BuildEnclosedArena()
        
        # Call our custom function to place the selector
        PlaceClassSelector()

    # Function: BuildEnclosedArena
    # This function creates a square room using floor and wall props.
    BuildEnclosedArena():
        # We need to know where the center of the map is.
        CenterPos := GetWorld().GetOrigin()
        
        # Loop through each side of the square (North, South, East, West)
        # Imagine drawing a box around the center point.

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.

Sign in with Discord

Comments

    Sign in to vote, comment, or suggest an edit. Sign in