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.
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. 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