Broken Neon flicker script
You need to own this item to leave a rating.
How to Use This Script:
Attach this script to a point light to make it behave like a broken neon light, flickering at irregular intervals. The second image shows the settings I preferred, but you can adjust them to your liking.
Important Notes:
In addition to placing this script on the point light, you need a trigger volume from:
Inventory Drop Menu > All Sources > System
Set the trigger volume’s size and position to define where the avatar will trigger the light.
Copy the trigger volume’s name and add it to the script:
In the Scene Objects window, find your trigger volume.
Right-click it and select "Copy Reference."
Go back to your point light (where you added the script).
In the script, locate the "trigger volume" field.
Right-click and select "Paste Reference" to link the volume to the script.
Optional:
You can disable "Start Enabled" so the light remains off until a player collides with the trigger volume. This helps optimize performance, unless the light is always visible in an open area.
Update:
If you purchased this script, redeliver it to receive the updated version.
New Features:
Added three sound slots to randomly play a neon flicker sound based on the shutdown flicker rate. Make sure you add an Audio Emitter to the point light, right click > add > audio. You can add your own custom sounds.
Added a new field to link a mesh that will show/hide based on the flicker effect. To set this up:
In the Scene Objects window, find the object you want to flicker (e.g., a neon mesh with an emissive material).
Right-click it and select "Copy Reference."
Go back to the script and paste the reference into the "Visible Mesh" field.
Make sure that the mesh you copy as reference for the neon mesh. has in the properties " Is Scriptable" ON, otherwise the script wont be able do changes to the object you linked.
Update bug fix: check if agent exist in the scene if logged out while in the trigger volume.
Added a new property to link another mesh in case you want to add some electric sparks mesh or a billboard, and extra sliders to control its behavior.
Added debug toggle to check only when need it.