Projectile Ammo

The ProjectileAmmo script is the base logic used for any standard projectile in the game. It manages direct collisions and relays damage through the DamageData structure.

This component is ideal for single-target projectiles that donโ€™t require splash damage.

๐Ÿ“ Inspector Fields

FieldDescription
SpeedHow fast the projectile moves forward (units per second)
LifetimeHow long the projectile exists before despawning or recycles through pooling
On Impact (DamageData)Triggered when the projectile hits something. Use this to play VFX, SFX, or apply gameplay effects.