DoubleTime520 Posted March 12, 2021 Share Posted March 12, 2021 (edited) So I am almost done with my teleport spells I made after watching a tutorial from Darkfox127 and using the script that he provides. I'm testing it right now and everything works fine as far as teleporting goes, but one thing is happening that I don't know how to fix. Every time i do teleport, there are 2 load screen transitions instead of the usual one. The first one is a normal load screen time, while the second lasts about 1-1.5 seconds before i actually get to my destination. This only happens when I'm using my teleport spells. Any ideas? No crashes or issues besides this which a bit annoying. This is my first scripted mod as well. ObjectReference Property Loc01 AutoEvent OnEffectStart(Actor akTarget, Actor akCaster) Utility.Wait(1.0) Game.FadeOutGame(False, True, 2.0, 1.0) Game.GetPlayer().MoveTo(Loc01) Game.EnableFastTravel() Game.FastTravel(Loc01)EndEvent Edited March 12, 2021 by DoubleTime520 Link to comment Share on other sites More sharing options...
dylbill Posted March 12, 2021 Share Posted March 12, 2021 That's because in your script you're using FastTravel and Moveto, so you're teleporting twice. Use one or the other, you don't need both. Link to comment Share on other sites More sharing options...
DoubleTime520 Posted March 12, 2021 Author Share Posted March 12, 2021 That's because in your script you're using FastTravel and Moveto, so you're teleporting twice. Use one or the other, you don't need both.So just remove one of those lines then? And is there a better of the two? Thank you, i appreciate the help. Link to comment Share on other sites More sharing options...
DoubleTime520 Posted March 12, 2021 Author Share Posted March 12, 2021 (edited) Alright I deleted0 "Game.GetPlayer().MoveTo(Loc01)" from the script and the issue remained. I then re added that and removed "Game.FastTravel(Loc01)" and the teleport seems to be working perfect now. Thank you for the help :thumbsup: Edited March 12, 2021 by DoubleTime520 Link to comment Share on other sites More sharing options...
dylbill Posted March 13, 2021 Share Posted March 13, 2021 No problem. The biggest difference between moveto and fast travel is that moveto does not advance game time where as fast travel does. If you're using moveto you don't need the EnableFastTravel line either. Link to comment Share on other sites More sharing options...
DoubleTime520 Posted March 13, 2021 Author Share Posted March 13, 2021 That makes sense. Do you happen to know why the moveto wasn't giving me the 2 load screens, while fast travel was? Link to comment Share on other sites More sharing options...
AnishaDawn Posted March 13, 2021 Share Posted March 13, 2021 (edited) MoveTo invokes load screens if the distance between the 2 objects is far enough.Fast Travel always invokes load screens. My meaning is you got 2 load screens from both functions, 1 from MoveTo and 1 from FastTravel. Edited March 13, 2021 by AnishaDawn Link to comment Share on other sites More sharing options...
maxarturo Posted March 13, 2021 Share Posted March 13, 2021 Just a Note: Moddres usually use both of this functions together just to cover the possibility of one of them malfunctioning, if one doesn't fire the other will. It's stated somewhere in 'CK wiki' that both "FastTravel()" and "MoveTo()" will not always work as intended, if i remember correctly..., and based in this info made me deside to use both functions on my 'Multi Teleport Spell' when i made it more that 2 years ago. * Using both functions except the 'load screens' will not cause any issue whatsoever. Have everyone a nice weekend. Link to comment Share on other sites More sharing options...
Recommended Posts