The Secret Sauce of Shadows: Mastering SkyLight
verse-library
OnBegin<override>()<suspends>: void =
# Wait for a player to enter the trigger
for player : GetPlayers():
# If the player is inside, we change the lighting
ApplyStormMood()
# 3. FUNCTIONS: The "Action"
# This is the code that actually does the work.
# Think of this as the "Building Edit" command.
ApplyStormMood(): void =
# We need to find the SkyLight component in the world.
# In Verse, we use 'Find' to grab a component by name.
# It's like finding your favorite gun in the loot pool.