using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /Verse.org/Random }
# We are creating a device that listens for players.
# 'creative_device' is the base class for all UEFN devices.
# Think of it as the "container" for our logic.
platform_trap := class(creative_device):
# --- VARIABLES (The Loot Drops) ---
# This is the platform prop we want to hide.
# @editable means you can change this in the editor's Details panel.
@editable
GhostPlatform: creative_prop = creative_prop{}
# This is the trigger zone we are attaching to.
@editable
TouchSensor: trigger_device = trigger_device{}
# The big one: How many seconds to wait after landing?
# We default to 2.0 seconds. Change this in the editor!
@editable
DisappearDelay: float = 2.0
# --- THE BRAIN (OnBegin) ---
# This function runs once when the game starts.
# <suspends> means this function can pause and wait.
OnBegin<override>()<suspends>: void =
# Subscribe to the TriggeredEvent.
Verse Library
verse
01 Device
Class inheriting creative device to hide platforms when sensors activate.
verse-library/how-long-to-wait-in-seconds-after-platforms-start-appearing/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.