Jump to content

Elevator Script


erican_lord

Recommended Posts

OK i Have An Activate Switch Named: Act_lift_rodaso, a Daedric hall End Named: elevator_dae_in_redaso, To Get In The Elevator You Have To Walk Through A Door Called: elevator_redaso_door, and I Want It To Be The Same When You Reach The 2nd Floor. (coordinates for floor 1 = z= -256.000, x= 1024.000 y= -1536.000 // Coordinates For Floor 2 = z= 640.000 y=-1536.000 x= 1024.000 ) (floor 2 does Not Have A Door.) Could Someone Give Me A Script With This Info? If You Need Any Other Info Please Feel Free To Ask Me or If Im Not On Email Me Here. Thanks in Advance! (I really Need This Script By Sunday, Sept. 28th if You Can Answer By Then.) P.s.: Is This Easily Done With MWSE? AKA Can I Do It There and Get My Script I Need Or No?) :thanks: Again!!
Link to comment
Share on other sites

I Have This Much But I Need To Know If There Is Any Problem. I am Trying To Get It Set So It's Already Down And Must Go Up, Then It Stays There Until You Press The Activation Switch Then It Goes Down to Floor 1. Please Let Me Know ASAP If It Needs To Be Changed At All. :thanks:

 

begin elevator_script_test

float timer
short start

if ( MenuMode == 1 )
return
endif

if ( OnActivate == 1)
if ( start == 0 )
	PlaySound "Dwemer Door Open"
	set start to 1
endif
return
endif

if ( start == 0 )
return
endif

if ( timer < 9 )
if ( timer > 1 )
	if ( start == 1 )
		PlaySound "Door Stone Open"
		Set start to 3
	endif
endif
1_v1->move Z 210
1_v2->move Z 210
1_v3->move Z 210
1_v4->move Z 210
1_Vlighte->move Z 210
;above two lines open the doors.
;you may need to adjust the times or the rotate value.
;right now they open over 9 seconds to about 100 degrees.
endif

if ( timer > 10 )
set start to 0
set timer to 0
;after 9 more seconds, the doors are back to their original position
;reset timer and start
endif

set timer to ( timer + GetSecondsPassed )
;above line increments the timer... should be last here outside if
;statements
;otherwise bad things can happen

Endif
Next If

float timer
short start

if ( MenuMode == 1 )
return
endif

if ( OnActivate == 1)
if ( start == 0 )
	PlaySound "Dwemer Door Open"
	set start to 1
endif
return
endif

if ( start == 0 )
return
endif

if ( timer < 9 )
if ( timer > 1 )
	if ( start == 1 )
		PlaySound "Door Stone Open"
		Set start to 2
	endif
endif
1_v1->move Z -210
1_v2->move Z -210
1_v3->move Z -210
1_v4->move Z -210
1_Vlighte->move Z -210
;above two lines open the doors.
;you may need to adjust the times or the rotate value.
;right now they open over 9 seconds to about 100 degrees.
endif

if ( timer > 10 )
set start to 0
set timer to 0
;after 9 more seconds, the doors are back to their original position
;reset timer and start
endif

set timer to ( timer + GetSecondsPassed )
;above line increments the timer... should be last here outside if
;statements
;otherwise bad things can happen
end elevator_script_test

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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