I need a 10 framed elevator cog
Ive moved over to JK2
This is the static archive of the Massassi Forums. The forums are
closed indefinitely. Thanks for all the memories!
You can also download
Super Old Archived Message Boards
from when Massassi first started.
"View" counts are as of the day the forums were archived, and will no longer increase.

# Cargo elevator script. Assignable switch/frame configuration.
#
# 11/2001 - 03/2002 GBK
Symbols
Message Activated
Message Arrived
Thing Elevator
Flex Movespeed=4.0
Surface Switch0
Surface Switch1
Surface Switch2
Surface Switch3
Surface Switch4
Surface Switch5
Surface Switch6
Surface Switch7
Surface Switch8
Surface Switch9
Int Frame0
Int Frame1
Int Frame2
Int Frame3
Int Frame4
Int Frame5
Int Frame6
Int Frame7
Int Frame8
Int Frame9
Sound Beep
Int I=0 Local
Int I2=0 Local
End
Code
Activated:
If(Isthingmoving(Elevator) != 0) Stop;
For(I=0;I<=9;I=I+1) {
If(Getsenderref() == Switch0) {
Movetoframe(Elevator, Frame0, Movespeed);
Playsoundpos(Beep, Surfacecenter(Switch0), 1.0, -1, 4, 0);
For(I2=0;I2<=9;I2=I2+1) {
Setwallcel(Switch0[I2], 1); } } }
Stop;
Arrived:
For(I=0;I<=9;I=I+1) { Setwallcel(Switch0, 0); }
Stop;
End
![http://forums.massassi.net/html/smile.gif [http://forums.massassi.net/html/smile.gif]](http://forums.massassi.net/html/smile.gif)

![http://forums.massassi.net/html/confused.gif [http://forums.massassi.net/html/confused.gif]](http://forums.massassi.net/html/confused.gif)
# Resets to frame0 after arrival. # # 01/2002 - 03/2002 GBK Symbols Message Entered Message Arrived Thing Plat Flex Movespeed=2.0 Int Lastframe=9 End Code Entered: If(Isthingmoving(Plat) != 0) Stop; Movetoframe(Plat, Lastframe, Movespeed); Stop; Arrived: Skiptoframe(Plat, 0, 1000); Stop; End
![http://forums.massassi.net/html/wink.gif [http://forums.massassi.net/html/wink.gif]](http://forums.massassi.net/html/wink.gif)

# Resets to frame0 after arrival. # # 01/2002 - 03/2002 GBK Symbols Message Entered Message Arrived Thing Plat Flex Movespeed=2.0 Int Lastframe=9 End Code Entered: If(Isthingmoving(Plat) != 0) Stop; Movetoframe(Plat, Lastframe, Movespeed); Stop; Arrived: If(Getcurframe(Plat) != 0) Skiptoframe(Plat, 0, 1); Stop; End

# Will reset to 0 after entrance. # # 01/2002 - 03/2002 GBK Symbols Message Entered Thing Plat Flex Movespeed=2.0 Int Lastframe=9 INt Sec=0 Local End Code Entered: If(Getcurframe(Plat) != 0 && Isthingmoving(Plat) == 0) Skiptoframe(Plat, 0, 1); If(Getcurframe(Plat) == 0 && Isthingmoving(Plat) == 0) Movetoframe(Plat, Lastframe, Movespeed); Stop; End
![http://forums.massassi.net/html/frown.gif [http://forums.massassi.net/html/frown.gif]](http://forums.massassi.net/html/frown.gif)