using /Fortnite.com
using /UnrealEngine.com
# This is the main script for our squad view.
# It connects to the game world.
script SquadViewScript:
# This variable holds our UI widget.
# It is a "variable" because it changes (it gets set once).
var my_ui: widget = external {}
# This function runs when the game starts.
# "OnBegin" is an event that fires at the start.
OnBegin<override>()<suspends>: void =
# We tell the game to show our UI.
my_ui.SetVisibility(true)
# We log a message to help us debug.
print("Squad view is now visible!")
Verse Library
verse
01 Fragment
Displays a custom squad view UI widget at game start so players can view teammate status and positions.
verse-library/making-a-custom-squad-view/01-fragment.verse