Addon/thutconcrete/elevator

From OpenComputers: Rebooted
Revision as of 20:26, 24 August 2026 by Michiyo (talk | contribs) (Clean up Markdown artifacts from DokuWiki migration)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Component: Elevator

This component can be accessed by connecting an Elevator Control to a Computer.

Component name: elevator. Callbacks:

  • call(floor:number):boolean
Tries to call the elevator to a certain floor. Returns true on success, false and an error message otherwise.
  • isReady():boolean
Returns true if the elevator can be called, false if it can not (because it is already moving).
  • getLocalFloor():number
Returns the number of the floor the currently accessed Elevator Control is set to.
  • getElevatorFloor():number
Returns the number of the floor the elevator is currently at. If the elevator is moving, the function returns the destination floor as its second argument.
  • doesFloorExist(floor:number):boolean
Returns true if the floor exists and thus can be called; the function returns false if the floor does not exist.

Contents

Thut's Concrete
Components Elevator