Teardown
103 个评价
Elevator
   
奖励
收藏
已收藏
取消收藏
Type: Content
文件大小
发表于
更新日期
8.005 MB
2021 年 6 月 25 日 下午 7:42
2021 年 10 月 10 日 上午 2:22
3 项改动说明 ( 查看 )

订阅以下载
Elevator

描述
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.
41 条留言
mohawkmike 8 月 9 日 下午 6:34 
can you make a button that makes the elevator fall?
lelicravoecanela 5 月 10 日 上午 5:45 
good
Mr Cruz 4 月 13 日 上午 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 4 月 12 日 上午 11:45 
can you make this spawnable?
mat3535 1 月 2 日 上午 10:16 
It's good
mat3535 1 月 2 日 上午 10:15 
help im stuck in the elevator....
Xx jim xX 2024 年 9 月 15 日 上午 1:19 
no
wallien.jam 2024 年 7 月 20 日 上午 3:18 
ЁЬАННЫЙ УЖАС:steamthumbsup:
bunaHFF3739 2024 年 7 月 6 日 上午 1:41 
ground floor to 8th floor door is won't open
Igor_Al88 2024 年 5 月 2 日 上午 10:59 
it doesn't work for me, doors won't open etc