Verse Library verse

01 Fragment

Dynamically configures map indicator appearance and visibility for specific targets.

verse-library/map-indicators/01-fragment.verse

# This script lives on a Trigger Volume. 
# When a player enters, it updates the Map Indicator.

using { /Fortnite.com/Devices }
using { /Verse.org/Sim }

# 1. Define the Script
# This is like the rulebook for what happens when the trigger is hit.
sim script BossIndicatorScript {

    # 2. Editable Variables
    # These are the "slots" you see in the UE Editor sidebar.
    # @editable means you can change these values in the editor without touching code.
    
    # This is our "Loot Box" reference. 
    # We are telling Verse: "Find the Map Indicator device named 'BossMarker'."
    BossMarker : map_indicator_device = map_indicator_device{}

    # This is the text that will appear on the map.
    MarkerText : string = "FINAL BOSS HERE"

    # This is the color. 
    # We use a Color structure to pick Red.
    MarkerColor : color = color{R:1.0, G:0.0, B:0.0, A:1.0}

    # 3. The Event
    # This runs when a player enters the trigger volume.
    # It's like the "On Player Enters" event in a normal Creative device.
    OnBegin<override>()<suspends>:void=
    {

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