# We need to import devices so Verse knows what a Trigger and a Prop are.
# Think of 'using' like loading a specific ammo type into your inventory.
using { /Fortnite.com/Devices }
# This is our main script. It's like the rulebook for our Trigger.
# 'SecretStash' is just the name we gave this rulebook.
actor SecretStash:
# This is a 'Variable'.
# Think of it as a label on a loot box. We're labeling a specific device
# so our script knows WHICH chest to open.
# 'HiddenLoot' is the name of the variable.
# 'Creative Prop' is the TYPE of object it holds (like 'Weapon' or 'Item').
HiddenLoot: Creative Prop = Creative Prop{}
# This is an 'Event'.
# Events are like the Storm Timer or Elimination feed. They happen,
# and we need a function to react to them.
# 'OnBeginPlay' runs once when the game starts. We use it to 'link' our
# variable to the actual device in the world.
OnBeginPlay():
# Here we find the device named 'HiddenLoot' in the editor
# and assign it to our variable.
# If you named your prop something else in UEFN, change 'HiddenLoot' here.
HiddenLoot = World.FindDeviceByName("HiddenLoot")
# This event runs every time a player enters the Trigger Volume.
# 'Player' is the person who walked in. 'Other' is the trigger itself.
OnBeginOverlap(Player: Player, Other: Trigger Volume):
# Check if the HiddenLoot variable actually has a device assigned.
Verse Library
verse
01 Fragment
Uses trigger overlap events to locate editor devices and activate hidden loot when players enter volumes.
verse-library/show-3/01-fragment.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.