Scriptname KA_ABJProjectileSCRIPT extends ObjectReference 

armor property newItem auto
objectreference property summonFX auto
activator property KA_SummonFX auto
projectile property KA_AbjurationProjectile auto

;GlobalVariable property ka_AbjGlobal auto
;objectreference property Origin auto

Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
	if akProjectile && (akProjectile == KA_AbjurationProjectile)
		summonFX = self.PlaceAtMe(KA_SummonFX)
		summonFX.setScale(0.6)
			;summonFX.moveto(self)
			;summonFX.playGamebryoAnimation("mIdle")
		utility.wait (0.33)
		self.disable()
		summonFX.placeAtMe(newItem)
		utility.wait (3.2)
		summonFX.disable()
		summonFX.delete()
		delete()
	endIf
EndEvent