Teardown
Ocen: 103
Elevator
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Type: Content
Rozmiar pliku
Zamieszczono
Zaktualizowano
8.005 MB
25 czerwca 2021 o 19:42
10 października 2021 o 2:22
Listy zmian: 3 ( zobacz )

Zasubskrybuj, aby pobrać
Elevator

Opis
Showcase of my elevators that you can use in your own maps.
It has a button panel in elevator cabin which allows you to enter any floor number and displays the current floor. You can also call the elevator to any floor by pressing the up/down buttons on that floor.

As seen in my Acacia Apartments map.
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2498343049

How to use
  1. Make a local copy of this project then copy the "elevator" folder into your own project.
  2. Create a script node in the scene and set the file to "MOD/elevator/elevator.lua". All elevator components must go under this node. Set param0 to "id=1", see note below.
  3. Add a cabin instance (MOD/elevator/cabin.xml) under the script node.
  4. Add one or more floor instances (MOD/elevator/floor.xml) for each floor the elevator should stop at. The floor instance also contains the doors and buttons for that floor.
  5. Make sure the back wall of the elevator shaft is no more than 2 or 3 voxels (0.2-0.3 meters) away from the back of the cabin. Any further and the motor joint won't attach. However, in that case you can can move the joint to a better position.
  6. Enjoy!

NOTE: The "id" script parameter is to associate the elevator script (elevator.lua) with the cabin's button panel script (elevator-screen.lua). The id here is set to "1".
To have more than one elevator in a map, you will need to copy the cabin.xml prefab then edit it and find the "numpad" screen node. Set it's "id" tag to something else (e.g. "2"). Then set the second script "id" param to the same value.
I will look at making this easier in the future.

NOTE2: Riding in the elevator is very bumpy, but I think that's just due to Teardown's physics engine. There doesn't seem to be anything I can do about it.


Credit to MrFox2000 A.K.A Deffcolony for the elevator motor sound.
Komentarzy: 41
mohawkmike 9 sierpnia o 18:34 
can you make a button that makes the elevator fall?
lelicravoecanela 10 maja o 5:45 
good
Mr Cruz 13 kwietnia o 3:56 
I have a problem, the elevators doors are opening but the floors doors arn´t opening. Plus i can interact with the elevator buttons but when i click on one of the buttens nothing happens. But the elevator can go up and down via the outside controll buttons. btw good mod:steamhappy:
baabbott86 12 kwietnia o 11:45 
can you make this spawnable?
mat3535 2 stycznia o 10:16 
It's good
mat3535 2 stycznia o 10:15 
help im stuck in the elevator....
Xx jim xX 15 września 2024 o 1:19 
no
wallien.jam 20 lipca 2024 o 3:18 
ЁЬАННЫЙ УЖАС:steamthumbsup:
bunaHFF3739 6 lipca 2024 o 1:41 
ground floor to 8th floor door is won't open
Igor_Al88 2 maja 2024 o 10:59 
it doesn't work for me, doors won't open etc