Scriptname aaaTKCsplash extends activemagiceffect  

Activator Property FXEmptyActivator Auto
Explosion Property splashexp Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)

int NumTotal 	= 6
int CountCast	= 0
float Distance	= 150
float LocZ		= 10

ObjectReference StartBox
StartBox	= akCaster.placeAtMe(FXEmptyActivator)

While CountCast < NumTotal 
	Utility.Wait(0.05)
	float AngleZ			= akCaster.GetAngleZ() 
	float LocX			= Distance * math.sin(AngleZ)
	float LocY			= Distance * math.cos(AngleZ)
	StartBox.MoveTo(akCaster, LocX, LocY,LocZ)
	StartBox.placeAtMe(splashexp)
	Distance	+= 150
	CountCast	+= 1
	Utility.Wait(0.05)
EndWhile

StartBox.Delete()

endEvent