Rechargeable Magazine
The RechargeableMagazine is a special type of magazine designed for energy-based or sci-fi weapons. Unlike the traditional BulletMagazine, this magazine automatically regenerates ammo over time, removing the need for manual reloads.
It inherits from the base Magazine component and adds logic for timed recharging.
✅ Ideal For
- Laser guns
 - Energy rifles
 - Magic staves
 - Plasma weapons
 
⚙️ How It Works
- The clip holds a fixed maximum charge, defined by 
Clip Size. - When the weapon is fired, the clip is reduced accordingly.
 - If the clip is not full, it automatically recharges at a steady rate.
 - The 
Recharge Ratedetermines how many units are restored per second. - When the clip reaches zero, the 
On Depletedevent is triggered. 
Note
This magazine does not require or support manual reloads—ammo refills itself gradually.
📐 Inspector Overview

| Field | Description | 
|---|---|
| Clip | Current number of charges available | 
| Clip Size | Maximum amount of energy the magazine can hold | 
| On Depleted | Called when the clip runs out of charge | 
| On Start Reload | (Optional) Can be used to simulate cooldown animations or effects | 
| On Reload Complete | (Optional) Invoked when the clip is fully recharged | 
| Recharge Rate | Number of ammo units restored per second | 
💡 Usage Tips
- You can hook On Depleted to trigger a “weapon overheated” effect.
 - Use On Start Reload and On Reload Complete creatively to simulate charge buildup or cooldown if needed.
 - Ideal when combined with barrels like 
LaserBarrelfor futuristic continuous-fire effects.