Condition_HasUnlockedGameObject
Description
Checks if a game object is owned and unlocked by the household of the Self character. If S1 is not specified, the Object ID is taken from the GameObject currently selected as Target.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | Target Only — the context object; Self's household is always used for the unlock check. |
| CompareType | Supported compare types: Equal (is unlocked), NotEqual (is not unlocked). |
| S1 | The Object ID to check (from Object.json). If omitted, the Target GameObject's ID is used. |
Examples
| Description | BaseObject | Command | CompareType |
|---|---|---|---|
| Check if grandfather clock is unlocked by Self's household | Target | HasUnlockedGameObject | Equal |
| Check if selected Target object is unlocked | Target | HasUnlockedGameObject | Equal |
| Check if a skill reward object is not yet unlocked | Target | HasUnlockedGameObject | NotEqual |
Back to Command FinderSearch and filter all 491 Script Condition documents