is there a way i can maybe put all of them into one thread, so if i had 15 floors i wouldnt need 30 threads?
Code: Select all
//--------------//
// Lift Buttons //
//--------------//
1st:
$lift moveto $floor_1 // sets the lifts destination
$lift move // moves the lift to that destination
end
2nd:
$lift moveto $floor_2
$lift move
end
3rd:
$lift moveto $floor_3
$lift move
end
4th:
$lift moveto $floor_4
$lift move
end
//--------------//
// Call Buttons //
//--------------//
call_1:
$lift moveto $floor_1
$lift move
end
call_2:
$lift moveto $floor_2
$lift move
end
call_3:
$lift moveto $floor_3
$lift move
end
call_4:
$lift moveto $floor_4
$lift move
end
end
