Jump to content

Entering new world space without interior


Recommended Posts

So i want to know how bethesda makes it so you can enter directly into whiterun or any other city by just clicking the door and not needing a interior between them, as in world space directly to worldspace, the only way i know how is to create some kind of entrance between my two worldspaces, but if i want to have a seperate worldspace town and when you exit the town you go to the worldspace how do you do that????Sorry if i just missed something simple.

Link to comment
Share on other sites

A trigger box can do this. Just make it big enough to cover the entrance so that when entered it will transition from Space A to Space B. Attach this to the trigger. Oh, instead of using it as an entrance, you can instead make it cover the door and turn it into an activator. Either way. I'll list both scripts.

 

On Enter Script

 

 

Scriptname Enterscript Extends ObjectReference

ObjectReference Property InsideMarker Auto
ObjectReference Property OutsideMarker Auto

Event OnTriggerEnter(ObjectReference Ref)

   If Ref == Game.GetPlayer()
       Ref.MoveTo(InsideMarker/OutsideMarker) ;; Use one or the other, this script has both so you only have to make one script for both the entrance and exit
   EndIf

EndEvent

 

 

 

On Activate Script - Same properties as the On Enter Script

 

 

Event OnActivate(ObjectReference Ref)

   Game.GetPlayer().MoveTo(InsideMarker/OutsideMarker) ;; again, choose one

EndEvent

 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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