Jump to content

question about teleportscript


Recommended Posts

Posted

this teleports the player and followers to specefic location:

Spoiler

Scriptname DFHTeleportScript extends ActiveMagicEffect Ā Ā 

ObjectReference Property Loc01 Auto

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

it“s been said , we can use the same script to telport just an npc actor

will this work like this? can“t imagine it is that easy..

Spoiler

Scriptname DFHTeleportNPCScript extends ActiveMagicEffect Ā Ā 

ObjectReference Property Loc01 Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
Ā Ā  Ā Utility.Wait(1.5)
Ā Ā  Ā Game.GetActor().MoveTo(Loc01)
EndEvent

  • 2 weeks later...
Posted

i tried different methods, when i go build/compile, it always says failed...i can“t find anything in the wiki related to teleportation, does someone have experience with this?

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...