Scriptname nDragonSolarSphereScript extends activemagiceffect  

SPELL Property xBeam Auto  
objectreference obj
import utility
actor he
actor me
float fX
float fY
float fZ

Event OnEffectStart(Actor akTarget, Actor akCaster)
he = akTarget
me = akCaster
wait(RandomFloat(0.0, 1.0))
	fX = he.GetPositionX()
	fY = he.GetPositionY()
	fZ = he.GetPositionZ() + 500.0
	obj = he.placeatme(nActivatorSun)
	obj.setposition(fX, fY, fZ)
	obj.setscale(4.0)
xBeam.remotecast(obj, me, he)
wait(1.5)
obj.disable(true)
wait(1.0)
obj.delete()
Endevent

Activator Property nActivatorSun  Auto 