# This is a conceptual script to show how Verse talks to Hiding Props
# In reality, you mostly use the Device Settings UI for basic hiding.
# Define a "Hiding Prop" as a specific type of Actor in the Scene Graph
HidingProp := struct:
# The physical object
Mesh: Actor
# The event that fires when someone enters
OnEnter: Event<Actor>
# The event that fires when someone leaves
OnExit: Event<Actor>
# A function that handles the "Wobble" logic
HandleHiderEntry := (prop: HidingProp, hider: Actor) -> void:
# Play a sound effect (like a "found you" noise)
PlaySound(prop.Mesh, "WobbleSound")
# Start the wobble animation
StartWobbleAnimation(prop.Mesh, intensity=0.5)
# Log to the console (debugging, like checking your scoreboard)
Print($"Hider {hider} is now in {prop.Mesh}")
# This function runs when the prop's OnEnter event fires
# It's like a trap trigger: "If someone enters, do this."
SetupTrap := (prop: HidingProp) -> void:
# Connect the event to our function
prop.OnEnter += HandleHiderEntry
Verse Library
verse
01 Standalone
Defines a prop struct that fires entry events to trigger sounds and animations.
verse-library/using-hiding-prop-gallery-devices-in-fortnite-creative/01-standalone.verse