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
| Parameter | Description |
|---|---|
| BaseObject | The character to check. Self checks the self entity; Target checks the |
| target entity. Uses GetEntityIdByBaseObject() internally. | |
| CompareType | Equal (is a career employee at current site) or NotEqual (is not). |
| S1 | EB1CareerType to check (defaults to Business if omitted). |
Examples
| Description | BaseObject | Command | CompareType | S1 |
|---|---|---|---|---|
| Check if Self is a career employee | Self | IsCareerEmployee | Equal | |
| Check if Self is not a career employee | Self | IsCareerEmployee | NotEqual | |
| Check if Target is a career employee | Target | IsCareerEmployee | Equal | |
| Check School career employee | Self | IsCareerEmployee | Equal | School |
Notes
Returns false for invalid entity/component states regardless of CompareType.
Back to Command FinderSearch and filter all 491 Script Condition documents