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

FieldDescription
Wind Up TimeSeconds to wind up from rest to firing
Wind Down TimeSeconds to wind down from fully wound up to rest
Events > On Wind Up StartCalled when the trigger is pulled and the spool starts winding up
Events > On Wind Up CompleteCalled when the spool is fully wound up and the barrel starts firing
Events > On Wind Up CancelCalled when the trigger is let go before the wind-up completed
Events > On Wind Down StartCalled when the spool starts winding down
Events > On Wind Down CompleteCalled 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.