Scriptname aaaTKCTeleportScript extends ActiveMagicEffect  

ActorBase Property TeleportMan Auto

VisualEffect Property TeleportVFX Auto
Sound Property TeleportSound Auto
ImagespaceModifier Property TeleportISMD Auto

Activator Property FXEmptyActivator Auto

ObjectReference TargetPoint

Event OnEffectStart(Actor akTarget, Actor akCaster)
	If akCaster.GetActorBase() == TeleportMan
		TargetPoint = akCaster.PlaceAtMe(FXEmptyActivator)
		akCaster.KillSilent()
		Game.GetPlayer().MoveTo(TargetPoint,0,0,0,false)
		TeleportVFX.Play(akTarget)
		TeleportSound.Play(akTarget)
		TeleportISMD.Apply()
	EndIf
EndEvent