Condition_HasOperatingBizRole
Description
Returns whether the BaseObject's global HouseholdBiz role matches the specified Role. Unlike Condition_HouseholdBizRole (site-based), this condition determines the role by inspecting the BaseObject's current schedule's TimelineDtId and comparing it against the role base timeline IDs defined in UB1HouseholdBizDataAsset. When there is no current schedule, NotEqual returns true. For Customer, a character recorded as a customer of any operating restaurant (in-site customer, seat assignment, waiting party, or pending party) is also treated as a Customer, even without the customer schedule (e.g. manual-entry party members who are seated or still on the way).
Parameters
| Parameter | Description |
|---|---|
| BaseObject | An Entity that has a TimelineComponent (typically a Character). |
| CompareType | Equal: true if the current schedule's TimelineDtId matches the role's base timeline ID (Customer: or is recorded as a party customer of an operating restaurant). NotEqual: true if it does not. |
| S1 | HouseholdBiz role to compare against: Customer, Employee, or Manager. |
Examples
| Description | BaseObject | Command | CompareType |
|---|---|---|---|
| Check if Self currently has the Employee biz role in their schedule | Self | HasOperatingBizRole | Equal |
| Check if Target does not have the Manager biz role in schedule | Target | HasOperatingBizRole | NotEqual |
| Check if Self currently has the Customer biz role in their schedule | Self | HasOperatingBizRole | Equal |
Back to Command FinderSearch and filter all 491 Script Condition documents