In my model there is have 4 Elevators (2 for patient + 2 for staff). I would like to make sure the staff use only service elevator and the patient elevator used by patient + transporter .
Goal : Is to not transport patients in Service Elevator
1) Defined the barrier Rule 1 to Staff only.
2) CODE
treenode traveler = param(1);
/**Staff Only*/
return !isclasstype(traveler, "People::Staff") || traveler.TravelingWithoutPatient?;
3) I would like to know how to modify the code such that only Staff use Service elevator and no patients are transported in the elevator