# This is our main script file.
# It runs when the island starts.
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
# We define our devices here.
# Think of these as names for our tools.
hero_zone_manager := class(creative_device):
# These properties are set in the UEFN editor.
# Drag your placed devices into these slots.
@editable
MyTrigger : trigger_device = trigger_device{}
@editable
MyGlow : vfx_powerup_device = vfx_powerup_device{}
# This function runs when the game starts.
OnBegin<override>()<suspends> : void =
# We listen for players entering the trigger.
# OnTriggered fires when any agent activates the trigger.
MyTrigger.TriggeredEvent.Subscribe(OnPlayerEnteredTrigger)
# This handler runs each time the trigger fires.
OnPlayerEnteredTrigger(Agent : agent) : void =
# Cast the agent to a fort_character so we can apply the effect.
if (Player := Agent.GetFortCharacter[]):
# Activate the glow on the player who entered.
Verse Library
verse
01 Device
Activates a VFX glow effect on players when they enter a designated trigger zone.
verse-library/using-visual-effect-powerup-devices-in-fortnite-creative/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.