Scriptname nDragonMoltenSkinScript extends activemagiceffect  

import utility

actor me
objectreference he
objectreference obj
bool isready=true

Event OnEffectStart(Actor akTarget, Actor akCaster)
	me = akCaster
Endevent

Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, \
  bool abBashAttack, bool abHitBlocked)
	if isready
		isready = false
		he = akAggressor
		obj = he.placeatme(aSource)
		obj.SetPosition((he.GetPositionX()), (he.GetPositionY()), he.GetPositionZ() + fHeight)
		xHarm.remotecast(obj, me, he)
		RegisterForSingleUpdate(0.25)
	Endif
Endevent

Event OnUpdate()
	obj.delete()
	isready = true
Endevent


Float Property fHeight=2000.0  Auto  
Activator Property aSource Auto
SPELL Property xHarm  Auto  