Scriptname ScarTeleportToHomeTriggerScript extends ObjectReferenceEvent OnActivate(ObjectReference akActionRef)ObjectReference Me = Game.GetPlayer();THIS is the line you would need:ExteriorMarker.Moveto(Me)float ZAngle = Me.GetAngleZ() - 180ExteriorMarker.SetAngle(Me.GetAngleX(), Me.GetAngleY(), ZAngle) Game.GetPlayer().MoveTo(SpawnTo, 0,0,0, true)EndEventObjectReference Property SpawnTo AutoObjectReference Property ExteriorMarker Auto
Thats my code for a teleporting Activator script I wrote that is similar to what you are doing. I cant seem to figure out how to do it through spells (Which is why I reverted to activators)
If you manage to get a working copy, Would you please help me out as well by explaining how you got scripts to run when casting them? I cant seem to get mine to work at all.
Basically Im making a sort of Mobile home, and I kinda need it at the moment. For now Im just using activators