# Import the tools we need
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
# This is our main device
secret_door_device := class(creative_device):
# This is the trigger pad — wire this in the UEFN Properties panel
@editable
TriggerPad : trigger_device = trigger_device{}
# This is the list of prop devices for the Walls layer.
# Add every wall prop_manipulator device here in the Properties panel.
@editable
WallProps : []prop_manipulator_device = array{}
# This is the list of prop devices for the Treasure layer.
# Add every treasure prop_manipulator device here in the Properties panel.
@editable
TreasureProps : []prop_manipulator_device = array{}
# This runs when the game starts
OnBegin<override>()<suspends> : void =
# Wait for a player to touch the pad, then run on_player_touch
TriggerPad.TriggeredEvent.Await()
on_player_touch()
# This function runs when someone touches the pad
on_player_touch() : void =
# 1. Hide the 'Walls' layer
Verse Library
verse
01 Device
Uses a trigger pad to hide and show specific prop layers, dynamically changing the game world layout.
verse-library/world-partition-data-layers/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.