Automatic invisible teleport door. Teleport on proximity

Post » Tue Jan 07, 2014 6:47 am

Hello,

I am in the process of making a number of caves in rock and cliffs ala Skyrim, where the player walks in and as soon as they hit a certain point they auto teleport into the interor cave. I have the invisible door or mesh, whichever, and the caves obviously, but what script should I use? It would need to trigger on player proximity and send the player to a point on the interior.

User avatar
SWagg KId
 
Posts: 3488
Joined: Sat Nov 17, 2007 8:26 am

Post » Tue Jan 07, 2014 11:15 am

Wrong answer, sorry.

User avatar
stacy hamilton
 
Posts: 3354
Joined: Fri Aug 25, 2006 10:03 am

Post » Mon Jan 06, 2014 10:50 pm

Actually you just need to use the back side of a black mask, so it's transparent and define it as an automatic door. The player will teleport as soon as he walks through it - no scripting required.

Define a custom door object using the black mask as the mesh. Tick off Automatic Door. One side of a black mask is black but it's only one-sided. You can flip it so that it's transparent. Just place it where you want the player to teleport and rig it up like a regular door. Done.

User avatar
MARLON JOHNSON
 
Posts: 3377
Joined: Sun May 20, 2007 7:12 pm

Post » Tue Jan 07, 2014 11:32 am

One way of doing it is placing a TriggerBox and a XMarkerHeading on each side and, when the player triggers the TriggerBox, move him to the XMarkerKeading on the other side.

The TriggerBox script should be something like this, i guess

scn TBAscript

short triggered

begin onTrigger

if triggered == 0

playerref.moveto XMARKERonTheOtherSideRef
set triggered to 2 ; prevents the player to be moved two frames in a row.
elseif triggered > 0
set triggered to triggered -1

endif
end

Instead of moving the player, you could force him to activate the door (DoorX.Activate PlayerRef 1)"), Long time ago i found out that going thru doors are 'cleaner' than MoveTo. Dont remember the details, but, if memory serves, had something to do with resetting the player animation.

Oooops . . .ninja'd - Automaatic doors ? Never used them. Sounds good.

User avatar
Roberto Gaeta
 
Posts: 3451
Joined: Tue Nov 06, 2007 2:23 am

Post » Tue Jan 07, 2014 1:57 am

Yeah. They work a treat. You're just walking along and suddenly you're someplace else. :P

User avatar
Ben sutton
 
Posts: 3427
Joined: Sun Jun 10, 2007 4:01 am

Post » Tue Jan 07, 2014 4:52 am

Just tried it. Works like a charm. If the target cell is loaded, it is instant teleport, no load screens. Very good! Thanks for the idea. I am sure I will find some use soon.

User avatar
FirDaus LOVe farhana
 
Posts: 3369
Joined: Thu Sep 13, 2007 3:42 am


Return to IV - Oblivion