public override void OnKilled(HitInfo info) { BaseProjectile attachedWeapon = GetAttachedWeapon(); if (attachedWeapon != null) { attachedWeapon.SetGenericVisible(false); attachedWeapon.SetLightsOn(false); } AttachedWeapon = null; base.OnKilled(info); }