Pickup Fizzler
A Portal-style fizzler: a pickup that enters it is dropped, glows with the fizzle material, drifts on for a moment, then respawns.
Note: This script is still under review, so it's marked obsolete for now. It works, but expect changes.
Requires:
- Collider set to Is Trigger
- Pickups with VRC Object Sync (it's what respawns them)
Fizzler Sound - Type: AudioSource
- Follows the pickup while it fizzles, then returns to where it was.
Player Enter Sound - Type: AudioSource
- Played when the local player walks through.
Pickup Layer - Type: Int
- Only pickups on this layer fizzle.
- Default Value:
13 (VRChat's Pickup layer)
Fizzle Duration - Type: Float
- Seconds between entering the fizzler and respawning.
- Default Value:
2.0
Fizzle Material - Type: Material
- Replaces every material on the pickup while it fizzles.
Script Behavior:
- One pickup fizzles at a time; others pass through while it does.
- Every player sees the effect. Only the pickup's owner moves and respawns it, so the sync isn't fought over.