Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Multi Floor Elevator
- @inputs Up Down Zero
- @outputs Floor Height SmoothRate
- @persist
- @trigger
- StartHeight = 33 # Height of Floor 0
- FloorHeight = 200 # Height of Each Floor
- SmoothRate = 65 # Speed of Elevator (recommended 50 - 80)
- if(Up == 1){ # Makes the Elevator go Up if Up is pressed
- Floor+=1
- }
- if(Down == 1){ # Makes the Elevator go Down if Down is pressed
- Floor-=1
- }
- if(Zero == 1){
- Floor-= Floor
- }
- if(Floor == 0){ # If Floor = 0 it will have StartHeight as Value
- Height = StartHeight
- }
- if(Floor > 0){ # Floor*FloorHeight is the Height!!
- Height = Floor * FloorHeight
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement