I've created a building with 13 floors. Now i'm using the 00_basic elevator, which only has two frames (the top and bottom) and it runs continously. Is there a COG in JK or one I can download that runs continuously but I can program 13 stops?
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.
# Simple elevator script. User-definable number of floors. # #08/2002 GBK Symbols Message Startup Message Arrived Message Timer Thing Elevator Int Num_floors=13 #Number of stops. Flex Sleeptime=2 #How long to wait. Flex Speed=4 #Speed of elev. Int I=0 Local End Code Startup: Settimer(Sleeptime); Stop; Timer: If(Getcurframe(Elevator) == Num_floors) I=1; Else If(Getcurframe(Elevator) == 0) I=0; If(!I) Movetoframe(Elevator, Getcurframe(Elevator) + 1, Speed); Else Movetoframe(Elevator, Getcurframe(Elevator) - 1, Speed); Stop; Arrived: Settimer(Sleeptime); Stop; End