Scriptname aaaTKCPullScript extends activemagiceffect  

Activator Property FXEmptyActivator Auto
ObjectReference StartBox


Event OnEffectStart (Actor akTarget, Actor akCaster)
	StartBox = akCaster.placeAtMe(FXEmptyActivator)

	float Angle= akCaster.GetAngleZ()
	float LocX = 100 * math.sin(Angle)
	float LocY = 100 * math.cos(Angle)

	StartBox.moveto(akCaster,LocX,LocY, 0)	
	akTarget.TranslateToRef(StartBox,1000)
	StartBox.Delete()
	self.dispel()
EndEvent