We would like to set up a conditional barrier that allows staff only to pass through. Currently we have a condition rule for 'staff only' stated below. This works for staff (allowing them to pass through), however it also allows patients escorted by staff to pass through. We would like to limit this to only staff, and force patients traveling with staff to go another way.
treenode traveler = param(1);
/**Staff Only*/
return !isclasstype(traveler, "People::Staff") || traveler.TravelingWithPatient?;
Any help would be appreciated.