Skip to main content

Condition_IsCareerEmployee

Description

Checks if the BaseObject character is an employee of a career whose site matches their current location. Uses CareerComponent to look up the character's own career, then compares its site with the current site. S1 specifies the EB1CareerType to check (defaults to Business if omitted).

Parameters

ParameterDescription
BaseObjectThe character to check. Self checks the self entity; Target checks the
target entity. Uses GetEntityIdByBaseObject() internally.
CompareTypeEqual (is a career employee at current site) or NotEqual (is not).
S1EB1CareerType to check (defaults to Business if omitted).

Examples

DescriptionBaseObjectCommandCompareTypeS1
Check if Self is a career employeeSelfIsCareerEmployeeEqual
Check if Self is not a career employeeSelfIsCareerEmployeeNotEqual
Check if Target is a career employeeTargetIsCareerEmployeeEqual
Check School career employeeSelfIsCareerEmployeeEqualSchool

Notes

Returns false for invalid entity/component states regardless of CompareType.