Spool
The Spool adds a wind-up before a barrel fires and a wind-down after it stops. It is a barrel modifier: add it to the same GameObject as any barrel and the barrel waits for it before shooting.
Add Component: Glowing Rifts > Modular Weapon > Spool
✅ Ideal For
- Miniguns that spin up
- Lasers that charge before the beam fires
- Any weapon with a delay between pulling the trigger and firing
⚙️ How It Works
- Pulling the trigger starts the wind-up. The barrel starts firing once the spool is fully wound up.
- Letting go before the wind-up completes cancels the shot.
- When the barrel stops shooting, the spool winds down.
- Pulling the trigger again during the wind-down resumes from the current spool level instead of from zero.
- Semi-automatic and burst barrels wind down right after their shots are out.
Note
Without a spool, a barrel fires right away. The laser barrel’s old Wind Up Time has moved here.
📐 Inspector Overview
| Field | Description |
|---|---|
| Wind Up Time | Seconds to wind up from rest to firing |
| Wind Down Time | Seconds to wind down from fully wound up to rest |
| Events > On Wind Up Start | Called when the trigger is pulled and the spool starts winding up |
| Events > On Wind Up Complete | Called when the spool is fully wound up and the barrel starts firing |
| Events > On Wind Up Cancel | Called when the trigger is let go before the wind-up completed |
| Events > On Wind Down Start | Called when the spool starts winding down |
| Events > On Wind Down Complete | Called when the spool has fully wound down |
Tip
Read spool.level (0 at rest, 1 when firing) every frame to drive a spinning barrel, a charge glow or a rising sound pitch.