Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

Teleport Script


Dollparts
 Share

Recommended Posts

Hey all. Right, so this may be the wrong thread for this but that can be changed later.

 

I needs some help! =S

 

I am working on a player house and I have a workshop area with a loft in it. I wanted to have a ladder that lets you transition between being down on the floor and up in the loft, however because of space constraints I cannot have two ladders to allow things to function as they would normally when transitioning between two doors. 

 

CreationKit%202014-03-08%2015-23-40-22.j

 

The teleport markers (X's) serve simply to demonstrate the two points in which I want the ladder to transition the player. I am sure there are several options for this situation but I'm drawing a blank currently. I am really unsure what to do as this point and would welcome any guidance or assistance.

Link to comment
Share on other sites

Good morning, Dollparts! :biggrin:

   Hello, I have come up with a solution but I dont think it would be the greatest, you may have to adjust to suit your expectations.
What I did was added two xmarkers, one at the top and one at the bottom of the room just like your screen shot, I have also added a door ladder "RiftenRWHallLadderDoor01".

After adding those items, I attached a script into the door ladder's scripts, the script is:

Scriptname ladderteleport extends ObjectReference



Int Property teleporttracking Auto

ObjectReference Property Up Auto

ObjectReference Property Down Auto

Event OnActivate(ObjectReference akActionRef)
If akActionRef == Game.GetPlayer()
if teleporttracking == 0
akActionRef.moveto(Up)
teleporttracking = teleporttracking + 1
elseif teleporttracking == 1
akActionRef.moveto(Down)
teleporttracking = teleporttracking - 1
endif
Endif
EndEvent



And in properties, I have set the references "Up" to be the xmarker at the top, "Down" to be the xmarker at the bottom, and "teleporttracking" to have a default value of 0. The downside to using a door for a ladder is that you'll see "Open/Close Ladder" when you try to interact with it so you may need to find another interactable static mesh to use. Well, I hope this helps, good luck! :thumbup:

Link to comment
Share on other sites

No problem, I dont think this would be very effective for followers though. Also, if the player decides to reach the top level and jump down instead of using the ladder, the player will have to activate the ladder again to reset the integer to the right value. What you can do is add a collision mesh or some sort of invisible blocker so that the only way down is by using the ladder again, or if you want to use multiple ladders, attach a similar script on the new ladder but having the xmarker variables different.

A new and different way to approach this is to make a new ladder that are two meshes that are supposed to connect together at a half-way point so they look like one mesh but are actually two doors that connect together, I think this would overall just be way better than using a script as a tracker. I would suggest making the lower half literally named "Up" and change the interaction name from "Open" to "Climb" so it'll read as "E to Climb Up" and the same for the upper half so the player can determine what door he/she is looking at.

Edited by Xxbtztrl
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...