Jump to content

Scripting Help - MoveTo function loading player into infinite void


Recommended Posts

I am trying to create a mod that creates spells to teleport you to different areas of a Goma Pero Land. When I assign the property Loc01 to a Goma Pero Land cell the spell loads me into an infinite void where I am falling for ever, just a sky box around me. To see if there was something wrong with my script I assigned Loc01 to the vanilla cell AbandonedPrison01 and the spell worked as intended. I have tried different Goma cells and different references in each of those different cells but nothing is working. Am I missing something?

 

 

Scriptname TeleportSpell extends ActiveMagicEffect
 

ObjectReference Property Loc01 Auto
 

Event OnEffectStart(Actor akTarget, Actor akCaster)
    Utility.Wait(0.5)
    Game.FadeOutGame(False, True, 2.0, 1.0)
    Game.GetPlayer().MoveTo(Loc01)
    Game.EnableFastTravel()
    Game.FastTravel(Loc01)
EndEvent

Link to comment
9 minutes ago, Hank2956 said:

When I assign the property Loc01 to a Goma Pero Land cell the spell loads me into an infinite void where I am falling for ever, just a sky box around me.

 

You need to teleport on an object, not cell or location. You could place an invisible marker in Goma Pero Land cell and make player teleport on it.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use