Edit:
Right now, ive got a spell, that creates an explosion, the explosion places an item.. the item lands right where the spell impacts so thats working, but I cant get a reference to the spawned item to move my player there.
What I have so far:
Scriptname ConjureSelfScript extends ObjectReference{Used in the ConjureSelf Spell Mod}ObjectReference playerForm targetobjectReference targetRef;VFXActivator property SummonFX AutoeffectShader property fadeOutFX autoeffectShader property fadeInFX autovisualEffect property TrailFX auto;{Let's try some trailing FX to show where I'm going to pop out}Function MoveTo(ObjectReference akTarget, float afXOffset = 0.0, \ float afYOffset = 0.0, float afZOffset = 0.0, bool abMatchRotation = true) native Function RegisterForSingleLOSGain(Actor akViewer, ObjectReference akTarget) NativeFunction SomeFunction() RegisterForSingleLOSGain(Game.GetPlayer(), targetRef) ; Before we can use OnGainLOS we must register.EndFunctionEvent OnInit()SomeFunction()endEventEvent OnGainLOS(Actor akViewer, ObjectReference akTarget)player = game.getPlayer()target = akTargettargetRef = (target as ObjectReference);Perform the teleportfadeOutFX.play(player);player.setGhost(TRUE)objectReference previousLoc = targetRef.PlaceAtMe(SummonFX)Utility.Wait(0.2)TrailFX.Play(previousLoc, 0.5, targetRef)player.MoveTo(targetRef, 0, 0, 0, false)targetRef.PlaceAtMe(SummonFX)Utility.Wait(0.2)fadeOutFX.stop(player);player.setGhost(FALSE)targetRef.Delete()endEvent
Do you use google talk or anything similar?