Skip to main content

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

ParameterDescription
BaseObjectAn Entity that has a TimelineComponent (typically a Character).
CompareTypeEqual: true if the current schedule's TimelineDtId matches the role's base timeline ID. NotEqual: true if it does not.
S1HouseholdBiz role to compare against: Customer, Employee, or Manager.

Examples

DescriptionBaseObjectCommandCompareType
Check if Self currently has the Employee biz role in their scheduleSelfHasOperatingBizRoleEqual
Check if Target does not have the Manager biz role in scheduleTargetHasOperatingBizRoleNotEqual
Check if Self currently has the Customer biz role in their scheduleSelfHasOperatingBizRoleEqual