Get *actual* Floor Names?
alucard87pl opened this issue ยท 0 comments
I have an elevator with three floors, and named them in the Redstone Contacts like so, from bottom to top:
| Floor Identifier | Floor Description |
|---|---|
| 0 | Ground Floor |
| 1 | First Floor |
| 4 | Second Floor |
The numbering of Floor Identifier is important to visualize what I'm after here.
I'm running this test code(floors.lua):
e = peripheral.find("digital_adapter")
s = "bottom" --convenience
if e then
print("Elevator found")
enum = e.getElevatorFloors(s)
for l = 1,enum do
print(l.." : "..e.getElevatorFloorName(s, l))
end
endI was expecting e.getElevatorFloorName(s, l) to return the actual names (i.e. Floor Description) but it returns Floor Identifier like so:
>floors
Elevator found
1 : 1
2 : 4
3 : 3
How can I get the Floor Description?