using { /Fortnite.com/Devices } using { /UnrealEngine.com/Temporary/Structs } # This is our "Haunted Torch" script. # It makes a light flicker like it's haunted (or broken). Haunted_Torch = script (struct): # 1. The "Loot Drop" - We need a reference to the light. # In Verse, we grab the device we placed in the editor. Light_Device: Customizable_Light = "" # 2. The "Storm Timer" - How fast does it flicker? Flicker_Speed: float = 0.1 # 0.1 seconds per flicker On_Begin_Play (): # This runs once when the island starts. # We start a loop that will keep flickering forever. Loop_Flicker () Loop_Flicker (): # This is an infinite loop. Like a respawn timer that never ends. repeat (true): # Turn the light OFF Light_Device.Set_Is_Active (false) # Wait for a tiny moment (like a frame skip) Wait (Flicker_Speed) # Turn the light ON Light_Device.Set_Is_Active (true) # Wait again Wait (Flicker_Speed)